Filters whether JSONP is enabled for the REST API.
$jsonp_enabledboolwp-includes/load.php:1949wp_is_jsonp_request()wp-includes/rest-api/class-wp-rest-server.php:316WP_REST_Server::serve_request() * Filters whether JSONP is enabled for the REST API. * * @since 4.4.0 * * @param bool $jsonp_enabled Whether JSONP is enabled. Default true. */ $jsonp_enabled = apply_filters( 'rest_jsonp_enabled', true ); $jsonp_callback = false; if ( isset( $_GET['_jsonp'] ) ) { $jsonp_callback = $_GET['_jsonp']; }Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.