wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_die [ WordPress Function ]
| Parameter: |
|
| Definiert in: |
|
Kill WordPress execution and display HTML message with error message.
This function complements the die() PHP function. The difference is that HTML will be displayed to the user. It is recommended to use this function only, when the execution should not continue any further. It is not recommended to call this function very often and try to handle as many errors as possible silently.
Source
<?php
function wp_die( $message = '', $title = '', $args = array() ) {
if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
$function = apply_filters( 'wp_die_ajax_handler', '_ajax_wp_die_handler' );
elseif ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST )
$function = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' );
elseif ( defined( 'APP_REQUEST' ) && APP_REQUEST )
$function = apply_filters( 'wp_die_app_handler', '_scalar_wp_die_handler' );
else
$function = apply_filters( 'wp_die_handler', '_default_wp_die_handler' );
call_user_func( $function, $message, $title, $args );
}
?>
Beispiele [ wp-snippets.com ]
Top Google Suchergebnisse
- wp_die() - WordPress Codex
Description. Kill WordPress execution and display HTML message with error message. A call to this function complements the die() PHP function. The difference ...
codex.wordpress.org - WordPress › Support » Tags — wp_die
Password (forgot?) Register · WordPress › Support » wp_die. Tag: wp_die Add New » ... 4, Mike Walker, 1 year. Flood protection (Wp_die), 1, reserved, 2 years ...
wordpress.org - No Mr Bond, I Expect You To wp_die()! - Evil Genius Chronicles
Jun 25, 2009 ... After my argument with Alex King the other day where he defended his use of a wp_die() call from his Wordpress plugin as being a completely ...
www.evilgeniuschronicles.org - Using wp_die for error messages | WordPress Snippets
Jul 4, 2011 ... While developing a plugin, we might have to display error messages if something went terrible wrong and the user just can go on, like if the.
wp-snippets.com
Nutzerduskussionen [ wordpress.org ]
- Mike Walker on "Possible to override wp_die() ?"
- akabin on "Possible to override wp_die() ?"
- 10-nice on "Possible to override wp_die() ?"
- 10-nice on "Possible to override wp_die() ?"
- reserved on "Flood protection (Wp_die)"
- frankindelicato on "Junk code in wp-includes/functions.php"
- Glenn Ansley on "status_header(500) problem with IE6"
- eliemartin on "status_header(500) problem with IE6"
- leonl on "status_header(500) problem with IE6"
- archon810 on "status_header(500) problem with IE6"