wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/plugin.php › WordPress File
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_action | Hooks a function on to a specific action. |
add_filter | Hook a function or method to a specific filter action. |
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 | Retrieve the name of the current action. |
current_filter | Retrieve the name of the current filter or action. |
did_action | Retrieve the number of times an action is fired. |
doing_action | Retrieve the name of an action currently being processed. |
doing_filter | Retrieve the name of a filter currently being processed. |
do_action | Execute functions hooked on a specific 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 | Set the deactivation hook for a plugin. |
register_uninstall_hook | Set the uninstallation hook for a plugin. |
remove_action | Removes a function from a specified action hook. |
remove_all_actions | Remove all of the hooks from an action. |
remove_all_filters | Remove all of the hooks from a filter. |
remove_filter | Removes a function from a specified filter hook. |
wp_register_plugin_realpath | Register a plugin's real path. |
_wp_call_all_hook | Call the 'all' hook, which will process the functions hooked into it. |
_wp_filter_build_unique_id | Build Unique ID for storage and retrieval. |