On this page
apply_filters( 'rest_jsonp_enabled', bool $jsonp_enabled )
Filters whether JSONP is enabled for the REST API.
Parameters
$jsonp_enabledbool-
Whether JSONP is enabled. Default true.
Source
File: wp-includes/rest-api/class-wp-rest-server.php. View all references
$jsonp_enabled = apply_filters( 'rest_jsonp_enabled', true );
Related
Used By
| Used By | Description |
|---|---|
| wp_is_jsonp_request() wp-includes/load.php | Checks whether current request is a JSONP request, or is expecting a JSONP response. |
| WP_REST_Server::serve_request() wp-includes/rest-api/class-wp-rest-server.php | Handles serving a REST API request. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_jsonp_enabled