Skip to content

Accessing original action function #1695

Discussion options

You must be logged in to vote

Unfortunately, I don't think this is feasible because even if we add the original fn to the wrapped action, nothing prevents plugins from wrapping the action again and erasing that.
Maybe passing the original action function to $onAction() could work out for your particular case but I think it would just look confusing ("why do we have access to action here") for most users

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MaxGfeller
Comment options

Answer selected by MaxGfeller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants