apply_filters( ‘rest_jsonp_enabled’, bool $jsonp_enabled )

In this article

Filters whether JSONP is enabled for the REST API.

Parameters

$jsonp_enabledbool
Whether JSONP is enabled. Default true.

Source

$jsonp_enabled = apply_filters( 'rest_jsonp_enabled', true );

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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