Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_die_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
2678  * @param string $message Error message.
2679  * @param string $title Error title.
2680  * @param string|array $args Optional arguements to control behaviour.
2681  */
2682 function wp_die( $message, $title = '', $args = array() ) {
2683      if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
2684           die('-1');
2685
2686      if ( function_exists( 'apply_filters' ) ) {
2687           $function = apply_filters( 'wp_die_handler', '_default_wp_die_handler');
2688      } else {
2689           $function = '_default_wp_die_handler';
2690      }
2691
2692      call_user_func( $function, $message, $title, $args );
2693 }
2694
2695 /**
2696  * Kill WordPress execution and display HTML message with error message.