rest_jsonp_enabled

rest_jsonp_enabled

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('rest_jsonp_enabled') is found 2 times:

  • /wp-includes/load.php line 1920
    1916
    1917
    1918
    1919
    1920
    1921
    1922
    1923
    1924
    1925
    1926
            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
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    * @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'];
    }