WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 21 | /** Atom Server **/ |
| 22 | require_once(ABSPATH . WPINC . '/class-wp-atom-server.php'); |
| 23 | |
| 24 | /** Admin Image API for metadata updating */ |
| 25 | require_once(ABSPATH . '/wp-admin/includes/image.php'); |
| 26 | |
| 27 | $_SERVER['PATH_INFO'] = preg_replace( '/.*\/wp-app\.php/', '', $_SERVER['REQUEST_URI'] ); |
| 28 | |
| 29 | // Allow for a plugin to insert a different class to handle requests. |
| 30 | $wp_atom_server_class = apply_filters('wp_atom_server_class', 'wp_atom_server'); |
| 31 | $wp_atom_server = new $wp_atom_server_class; |
| 32 | |
| 33 | // Handle the request |
| 34 | $wp_atom_server->handle_request(); |
| 35 | |
| 36 | exit; |
| 37 | |
| 38 | /** |
| 39 | * Writes logging info to a file. |