WordPress at Your Fingertips
filter is not described

rest_jsonp_enabled filter-hook . WP 4.4.0

Filters whether JSONP is enabled for the REST API.

Usage

add_filter( 'rest_jsonp_enabled', 'filter_function_name_688' );
function filter_function_name_688( $jsonp_enabled ){
	// filter...

	return $jsonp_enabled;
}
$jsonp_enabled(true|false)
Whether JSONP is enabled.
Default: true

Changelog

Since 4.4.0 Introduced.

Where the hook is called

WP_REST_Server::serve_request()
rest_jsonp_enabled
wp_is_jsonp_request()
rest_jsonp_enabled
wp-includes/rest-api/class-wp-rest-server.php 274
$jsonp_enabled = apply_filters( 'rest_jsonp_enabled', true );
wp-includes/load.php 1677
$jsonp_enabled = apply_filters( 'rest_jsonp_enabled', true );

Where in WP core the hook is used WordPress

Usage not found.