Skip to main content

send_json_success()

public static function send_json_success( $data )

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

Since: 2.9.16

Source: common.php:8479

Parameters​

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

Returns​

  • void