function has_action($tag, $function_to_check = false) {}

Check if any action has been registered for a hook.


  • 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);



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: