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 |
---|---|
77 | if ( !function_exists( 'graceful_fail' ) ) : |
78 | /** |
79 | * @since MU |
80 | * @deprecated 3.0.0 |
81 | * @deprecated Use wp_die() |
82 | * @see wp_die() |
83 | */ |
84 | function graceful_fail( $message ) { |
85 | _deprecated_function( __FUNCTION__, '3.0', 'wp_die()' ); |
86 | $message = apply_filters( 'graceful_fail', $message ); |
87 | $message_template = apply_filters( 'graceful_fail_template', |
88 | '<!DOCTYPE html> |
89 | <html xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11"> |
90 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
91 | <title>Error!</title> |
92 | <style type="text/css"> |
93 | img { |
94 | border: 0; |
95 | } |