Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rest_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
251           }
252
253           /**
254            * Filter whether the REST API is enabled.
255            *
256            * @since 4.4.0
257            *
258            * @param bool $rest_enabled Whether the REST API is enabled. Default true.
259            */
260           $enabled = apply_filters( 'rest_enabled', true );
261
262           /**
263            * Filter whether jsonp is enabled.
264            *
265            * @since 4.4.0
266            *
267            * @param bool $jsonp_enabled Whether jsonp is enabled. Default true.
268            */
269           $jsonp_enabled = apply_filters( 'rest_jsonp_enabled', true );