rest_jsonp_enabled

rest_jsonp_enabled

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('rest_jsonp_enabled') is found 2 times:

  • /wp-includes/load.php line 1920
    		return false;
    	}
    
    	/** This filter is documented in wp-includes/rest-api/class-wp-rest-server.php */
    	$jsonp_enabled = apply_filters( 'rest_jsonp_enabled', true );
    
    	return $jsonp_enabled;
    }
    
    /**
     * Checks whether a string is a valid JSON Media Type.
    
  • /wp-includes/rest-api/class-wp-rest-server.php line 310
    		 * @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'];
    		}