WordPress at a glance
Главная Functions Plugins, Hooks Hooks (actions, filters)

Category: Hooks (actions, filters) 14

add_action()

Hooks a function on to a specific action.

add_filter()

Attaches the specified PHP function to the specified filter hook. Thus, when the filter is triggered, the value will be filtered by the specified PHP function.

apply_filters()

Call the functions added to a filter hook.

apply_filters_ref_array()

Execute functions hooked on a specific filter hook, specifying arguments in an array.

current_filter()

Retrieve the name of the current filter or action.

did_action()

Retrieve the number of times an action is fired.

do_action()

Execute functions hooked on a specific action hook.

do_action_ref_array()

Execute functions hooked on a specific action hook, specifying arguments in an array.

doing_filter()

Retrieve the name of a filter currently being processed.

has_action()

Check if any action has been registered for a hook.

has_filter()

Check if any filter has been registered for a hook.

remove_action()

Removes a function from a specified action hook.

remove_all_filters()

Remove all of the hooks from a filter.

remove_filter()

Removes a function from a specified filter hook.