wp_is_json_request

Advertisement

Summery Summery

Checks whether current request is a JSON request, or is expecting a JSON response.

Syntax Syntax

wp_is_json_request()

Return Return

(bool) True if Accepts or Content-Type headers contain application/json. False otherwise.

Source Source

File: wp-includes/load.php

			array(
				'code'    => 'scrape_nonce_failure',
				'message' => __( 'Scrape nonce check failed. Please try again.' ),
			)
		);
		echo "###### wp_scraping_result_end:$key ######";
		die();
	}
	if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
		define( 'WP_SANDBOX_SCRAPING', true );
	}
	register_shutdown_function( 'wp_finalize_scraping_edited_file_errors', $key );
}

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply

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