Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_atom_server_class

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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.