Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_die_ajax_handler

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
2097  *
2098  * @since 2.0.4
2099  *
2100  * @param string $message Error message.
2101  * @param string $title Error title.
2102  * @param string|array $args Optional arguments to control behavior.
2103  */
2104 function wp_die( $message = '', $title = '', $args = array() ) {
2105      if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
2106           $function = apply_filters( 'wp_die_ajax_handler', '_ajax_wp_die_handler' );
2107      elseif ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST )
2108           $function = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' );
2109      else
2110           $function = apply_filters( 'wp_die_handler', '_default_wp_die_handler' );
2111
2112      call_user_func( $function, $message, $title, $args );
2113 }
2114
2115 /**