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 |
---|---|
2751 | * @param string $message Error message. |
2752 | * @param string $title Error title. |
2753 | * @param string|array $args Optional arguements to control behaviour. |
2754 | */ |
2755 | function wp_die( $message, $title = '', $args = array() ) { |
2756 | if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) |
2757 | die('-1'); |
2758 |
|
2759 | if ( function_exists( 'apply_filters' ) ) { |
2760 | $function = apply_filters( 'wp_die_handler', '_default_wp_die_handler'); |
2761 | } else { |
2762 | $function = '_default_wp_die_handler'; |
2763 | } |
2764 |
|
2765 | call_user_func( $function, $message, $title, $args ); |
2766 | } |
2767 |
|
2768 | /** |
2769 | * Kill WordPress execution and display HTML message with error message. |