remove_all_actions()
Removes all of the callback functions from an action hook.
No Hooks.
Return
true
. Always returns true.
Usage
remove_all_actions( $hook_name, $priority );
- $hook_name(string) (required)
- The action to remove callbacks from.
- $priority(int|false)
- The priority number to remove them from.
Default: false
Changelog
Since 2.7.0 | Introduced. |
remove_all_actions() remove all actions code WP 6.1.1
function remove_all_actions( $hook_name, $priority = false ) { return remove_all_filters( $hook_name, $priority ); }