rest_api_default_filters

Registers the default REST API filters.

Description

rest_api_default_filters(); 

Attached to the action to make testing and disabling these filters easier.


Usage

  1. if ( !function_exists( 'rest_api_default_filters' ) ) { 
  2. require_once ABSPATH . WPINC . '/rest-api.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = rest_api_default_filters(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/rest-api.php  
  1. function rest_api_default_filters() { 
  2. // Deprecated reporting. 
  3.  
  4. // Default serving. 
  5.