apply_filters( 'rest_jsonp_enabled', bool $jsonp_enabled )

Filters whether JSONP is enabled for the REST API.


Parameters

$jsonp_enabled

Whether JSONP is enabled. Default true.


Source

File: wp-includes/rest-api/class-wp-rest-server.php

View on GitHub



Changelog

Changelog
Version Description
4.4.0 Introduced.