monsterinsights_is_wp_seo_active

The Google Analytics for WordPress by MonsterInsights monsterinsights is wp seo active function.

Description

monsterinsights_is_wp_seo_active(); 

Usage

  1. if ( !function_exists( 'monsterinsights_is_wp_seo_active' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/helpers.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = monsterinsights_is_wp_seo_active(); 
  7.  

Defined (1)

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

/includes/helpers.php  
  1. function monsterinsights_is_wp_seo_active( ) { 
  2. $wp_seo_active = false; // @todo: improve this check. This is from old Yoast code. 
  3.  
  4. // Makes sure is_plugin_active is available when called from front end 
  5. include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 
  6. if ( is_plugin_active( 'wordpress-seo/wp-seo.php' ) || is_plugin_active( 'wordpress-seo-premium/wp-seo-premium.php' ) ) { 
  7. $wp_seo_active = true; 
  8. return $wp_seo_active;