Skip to main content

send_json_error()

public static function send_json_error( $data )

Sends an error JSON response with a delimiter indicating the beginning and end of the JSON string.

Since: 2.9.16

Source: common.php:8343

Parameters

NameTypeDefaultDescription
$datamixedThe data to be sent in the JSON response.

Returns

  • void