Definition:
function has_action($tag, $function_to_check = false) {}
Check if any action has been registered for a hook.
Parameters
- string $tag: The name of the action hook.
- callback $function_to_check: optional. If specified, return the priority of that function on this hook or false if not attached.
Return values
returns:Optionally returns the priority on that hook for the specified function.
Source code
function has_action($tag, $function_to_check = false) { return has_filter($tag, $function_to_check); }
1927
No comments yet... Be the first to leave a reply!