ap_send_json( array $result = array() )

Description #

Send a array as a JSON.

Parameters #

  • $result
    array (Optional) Results. Default value: array()

Source #

File: includes/functions.php

function ap_send_json( $result = array() ) {
	$result['is_ap_ajax'] = true;

	wp_send_json( $result ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment