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)


Top ↑

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(),
			)


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.