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