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 |
---|---|
2051 | * |
2052 | * @param string $message Error message. |
2053 | * @param string $title Error title. |
2054 | * @param string|array $args Optional arguments to control behavior. |
2055 | */ |
2056 | function wp_die( $message = '', $title = '', $args = array() ) { |
2057 | if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) |
2058 | $function = apply_filters( 'wp_die_ajax_handler', '_ajax_wp_die_handler' ); |
2059 | elseif ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) |
2060 | $function = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' ); |
2061 | else |
2062 | $function = apply_filters( 'wp_die_handler', '_default_wp_die_handler' ); |
2063 |
|
2064 | call_user_func( $function, $message, $title, $args ); |
2065 | } |
2066 |
|
2067 | /** |
2068 | * Kill WordPress execution and display HTML message with error message. |
2069 | * |