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
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
| CARVIEW |
Filters whether JSONP is enabled for the REST API.
$jsonp_enabledbool$jsonp_enabled = apply_filters( 'rest_jsonp_enabled', true );
| 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. |
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.