wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/plugin.php › WordPress File
Functions29
› 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_action | Adds a callback function to an action hook. |
add_filter | Adds a callback function to a filter hook. |
apply_filters | Calls the callback functions that have been added to a filter hook. |
apply_filters_deprecated | Fires functions attached to a deprecated filter hook. |
apply_filters_ref_array | Calls the callback functions that have been added to a filter hook, specifying arguments in an array. |
current_action | Retrieves the name of the current action hook. |
current_filter | Retrieves the name of the current filter hook. |
did_action | Retrieves the number of times an action has been fired during the current request. |
did_filter | Retrieves the number of times a filter has been applied during the current request. |
doing_action | Returns whether or not an action hook is currently being processed. |
doing_filter | Returns whether or not a filter hook is currently being processed. |
do_action | Calls the callback functions that have been added to an action hook. |
do_action_deprecated | Fires functions attached to a deprecated action hook. |
do_action_ref_array | Calls the callback functions that have been added to an action hook, specifying arguments in an array. |
has_action | Checks if any action has been registered for a hook. |
has_filter | Checks if any filter has been registered for a hook. |
plugin_basename | Gets the basename of a plugin. |
plugin_dir_path | Get the filesystem directory path (with trailing slash) for the plugin __FILE__ passed in. |
plugin_dir_url | Get the URL directory path (with trailing slash) for the plugin __FILE__ passed in. |
register_activation_hook | Set the activation hook for a plugin. |
register_deactivation_hook | Sets the deactivation hook for a plugin. |
register_uninstall_hook | Sets the uninstallation hook for a plugin. |
remove_action | Removes a callback function from an action hook. |
remove_all_actions | Removes all of the callback functions from an action hook. |
remove_all_filters | Removes all of the callback functions from a filter hook. |
remove_filter | Removes a callback function from a filter hook. |
wp_register_plugin_realpath | Register a plugin's real path. |
_wp_call_all_hook | Calls the 'all' hook, which will process the functions hooked into it. |
_wp_filter_build_unique_id | Builds Unique ID for storage and retrieval. |