remove_all_actions()WP 2.7.0

Removes all of the callback functions from an action hook.

Хуков нет.


true. Always returns true.


remove_all_actions( $hook_name, $priority );
$hook_name(строка) (обязательный)
The action to remove callbacks from.
The priority number to remove them from.
По умолчанию: false

Список изменений

С версии 2.7.0 Введена.

Код remove_all_actions() WP 5.9.3

function remove_all_actions( $hook_name, $priority = false ) {
	return remove_all_filters( $hook_name, $priority );