WordPress at Your Fingertips
function is not described

graceful_fail() WP 3.0.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use wp_die() instead.

Deprecated functionality to gracefully fail.

Hooks from the function


null. Nothing.


graceful_fail( $message );
$message (required)



Since 3.0.0 Introduced.
Deprecated Since 3.0.0 Use wp_die()

Code of graceful_fail() WP 5.8.1

function graceful_fail( $message ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'wp_die()' );
	$message = apply_filters( 'graceful_fail', $message );
	$message_template = apply_filters( 'graceful_fail_template',
'<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
img {
	border: 0;
body {
line-height: 1.6em; font-family: Georgia, serif; width: 390px; margin: auto;
text-align: center;
.message {
	font-size: 22px;
	width: 350px;
	margin: auto;
<p class="message">%s</p>
</html>' );
	die( sprintf( $message_template, $message ) );