The What
Description
This construct returns the name of the event (action hook) that is currently being processed right now.
Parameters
event_name
- The name of the event (filter hook) to check.
Return Values
Returns the name of the event that is currently calling all of its registered callbacks.
Your functions are bloated. Put them on a diet. Think "skinny" and "as few lines as possible."
More coming soon…keep checking back.
PHP Constructs
These are the PHP constructs used in WordPress Core for current_action
: