wpseo_init_rest_api

Loads the rest api endpoints.

Description

wpseo_init_rest_api(); 

Usage

  1. if ( !function_exists( 'wpseo_init_rest_api' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/wp-seo-main.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpseo_init_rest_api(); 
  7.  

Defined (1)

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

/wp-seo-main.php  
  1. function wpseo_init_rest_api() { 
  2. // We can't do anything when requirements are not met. 
  3. if ( WPSEO_Utils::is_api_available() ) { 
  4. // Boot up REST API. 
  5. $configuration_service = new WPSEO_Configuration_Service(); 
  6. $configuration_service->initialize();