A WordPress-centric search engine for devs and theme authors



_scalar_wp_die_handler ›

Since3.4.0
Deprecatedn/a
_scalar_wp_die_handler ( $message = '' )
Access:
  • private
Parameters:
  • (string) $message Optional. Response to print. Default empty.
    Required: No
    Default: (empty)
Defined at:
Codex:

Kill WordPress execution.

This is the handler for wp_die when processing APP requests.



Source

function _scalar_wp_die_handler( $message = '' ) {
	if ( is_scalar( $message ) ) {
		die( (string) $message );
	}
	die();
}