_scalar_wp_die_handler

Kill WordPress execution.

Description

_scalar_wp_die_handler( (string) $message = '' ); 

This is the handler for wp_die when processing APP requests.

Parameters (1)

0. $message — Optional. (string) => ''
Response to print. Default empty.

Usage

  1. if ( !function_exists( '_scalar_wp_die_handler' ) ) { 
  2. require_once ABSPATH . WPINC . '/functions.php'; 
  3.  
  4. // Optional. Response to print. Default empty. 
  5. $message = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = _scalar_wp_die_handler($message); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/functions.php  
  1. function _scalar_wp_die_handler( $message = '' ) { 
  2. if ( is_scalar( $message ) ) 
  3. die( (string) $message ); 
  4. die();