Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rest_jsonp_enabled

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1911           require_once ABSPATH . WPINC . '/functions.php';
1912      }
1913
1914      $jsonp_callback = $_GET['_jsonp'];
1915      if ( ! wp_check_jsonp_callback( $jsonp_callback ) ) {
1916           return false;
1917      }
1918
1919      /** This filter is documented in wp-includes/rest-api/class-wp-rest-server.php */
1920      $jsonp_enabled = apply_filters( 'rest_jsonp_enabled', true );
1921
1922      return $jsonp_enabled;
1923 }
1924
1925 /**
1926  * Checks whether a string is a valid JSON Media Type.
1927  *
1928  * @since 5.6.0
1929  *