Kills WordPress execution and displays an error message.
Description
This is the handler for wp_die() when processing APP requests.
Parameters
$message
stringoptional- Response to print.
Default:
''
$title
stringoptional- Error title (unused).
Default:
''
$args
string|arrayoptional- Arguments to control behavior.
Default:
array()
Source
function _scalar_wp_die_handler( $message = '', $title = '', $args = array() ) {
list( $message, $title, $parsed_args ) = _wp_die_process_input( $message, $title, $args );
if ( $parsed_args['exit'] ) {
if ( is_scalar( $message ) ) {
die( (string) $message );
}
die();
}
if ( is_scalar( $message ) ) {
echo (string) $message;
}
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.