A WordPress-centric search engine for devs and theme authors



wp-includes/plugin.php ›

Functions28
The plugin API is located in this file, which allows for creating actions and filters and hooking functions, and methods. The functions or methods will then be run when the action or filter is called.


Function Short description
add_actionHooks a function on to a specific action.
add_filterHook a function or method to a specific filter action.
apply_filtersCall the functions added to a filter hook.
apply_filters_deprecatedFires functions attached to a deprecated filter hook.
apply_filters_ref_arrayExecute functions hooked on a specific filter hook, specifying arguments in an array.
current_actionRetrieve the name of the current action.
current_filterRetrieve the name of the current filter or action.
did_actionRetrieve the number of times an action is fired.
doing_actionRetrieve the name of an action currently being processed.
doing_filterRetrieve the name of a filter currently being processed.
do_actionExecute functions hooked on a specific action hook.
do_action_deprecatedFires functions attached to a deprecated action hook.
do_action_ref_arrayExecute functions hooked on a specific action hook, specifying arguments in an array.
has_actionCheck if any action has been registered for a hook.
has_filterCheck if any filter has been registered for a hook.
plugin_basenameGets the basename of a plugin.
plugin_dir_pathGet the filesystem directory path (with trailing slash) for the plugin __FILE__ passed in.
plugin_dir_urlGet the URL directory path (with trailing slash) for the plugin __FILE__ passed in.
register_activation_hookSet the activation hook for a plugin.
register_deactivation_hookSet the deactivation hook for a plugin.
register_uninstall_hookSet the uninstallation hook for a plugin.
remove_actionRemoves a function from a specified action hook.
remove_all_actionsRemove all of the hooks from an action.
remove_all_filtersRemove all of the hooks from a filter.
remove_filterRemoves a function from a specified filter hook.
wp_register_plugin_realpathRegister a plugin's real path.
_wp_call_all_hookCall the 'all' hook, which will process the functions hooked into it.
_wp_filter_build_unique_idBuild Unique ID for storage and retrieval.