Plugin API
The Plugin API provides a neat interface to work with actions and filters.
Hooks, Actions and Filters
Hooks are provided by WordPress to allow your plugin to ‘hook into’ the rest of WordPress; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion. There are two kinds of hooks:
Actions | Filters |
The functions that theme and plugin developers most commonly use are these: | |
Filter Functions | Actions Functions |
add_filter( )apply_filters( ) |
add_action( )do_action( ) |