WordPress at a glance
function is not described

_scalar_wp_die_handler() WP 3.4.0

Kills WordPress execution and displays an error message.

This is the handler for wp_die() when processing APP requests.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

null. Null. Nothing.

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

Changelog

Since 3.4.0 Introduced.
Since 5.1.0 Added the $title and $args parameters.

Code of _scalar_wp_die_handler() WP 5.7

<?php
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;
	}
}