Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_AJAX::send_error( WP_Error $error )
Sends a JSON response with the details of the given error.
Parameters Parameters
- $error
-
(WP_Error) (Required)
Source Source
File: includes/class.llms.ajax.php
* @param WP_Error $error */ private static function send_error( $error ) { wp_send_json( array( 'code' => $error->get_error_code(), 'message' => $error->get_error_message(), )
Expand full source code Collapse full source code View on GitHub