yoast_wpseo_missing_autoload

Throw an error if the Composer autoload is missing and self-deactivate plugin.

Description

yoast_wpseo_missing_autoload(); 

Usage

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

Defined (1)

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

/wp-seo-main.php  
  1. function yoast_wpseo_missing_autoload() { 
  2. if ( is_admin() ) { 
  3.