WordPress at a glance
function is not described

_scalar_wp_die_handler() WP 3.4.0

Kill WordPress execution.

This is the handler for wp_die when processing APP requests.

  • Since 5.1.0 Added the $title and $args parameters.

No Hooks.

Return

Nothing (null).

Usage

_scalar_wp_die_handler( $message, $title, $args );
$message(string)
Response to print.
Default: ''
$title(string)
Error title (unused).
Default: ''
$args(string/array)
Arguments to control behavior.
Default: empty array

Code of scalar wp die handler: wp-includes/functions.php VER 5.1.1

<?php
function _scalar_wp_die_handler( $message = '', $title = '', $args = array() ) {
	list( $message, $title, $r ) = _wp_die_process_input( $message, $title, $args );

	if ( $r['exit'] ) {
		if ( is_scalar( $message ) ) {
			die( (string) $message );
		}
		die();
	}

	if ( is_scalar( $message ) ) {
		echo (string) $message;
	}
}