WPDev.one
Core Function
View Source on Trac ↗

remove_all_actions()

remove_all_actions( mixed $hook_name, mixed $priority = false )

Removes all of the callback functions from an action hook.

Parameters 2 required

Name / Type Description
$hook_name
string

The action to remove callbacks from.

Required
mixed

(int | false) $priority Optional. The priority number to remove them from. Default false.

Required

Return Value

(true)
Always returns true.

Function Information

Since Version
2.7.0
Source File
wp-includes/plugin.php
Advertisement