rest_jsonp_enabled WordPress Filter Hook
The rest_jsonp_enabled hook enables JSONP for the REST API. When this hook is called, it will add the ?callback=? to the REST API URL. This will allow WordPress to make requests to the REST API using JSONP.
apply_filters( 'rest_jsonp_enabled', bool $jsonp_enabled ) #
Filters whether JSONP is enabled for the REST API.
Parameters
- $jsonp_enabled
(bool)Whether JSONP is enabled. Default true.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |