public static add_wp_hook ( string $tag, mixed $function_to_add, integer $priority = 10, integer $accepted_args = 1 ) : true | ||
$tag | string | Named WordPress action or filter. |
$function_to_add | mixed | Callable to execute when the action or filter is evaluated. |
$priority | integer | Priority to add the callback as. |
$accepted_args | integer | Number of arguments to pass to callback. |
return | true |