wpseo_advanced_settings_enabled

Detects if the advanced settings are enabled.

Description

wpseo_advanced_settings_enabled( (array) $wpseo_options ); 

Parameters (1)

0. $wpseo_options (array)
The wpseo settings.

Usage

  1. if ( !function_exists( 'wpseo_advanced_settings_enabled' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/inc/wpseo-non-ajax-functions.php'; 
  3.  
  4. // The wpseo settings. 
  5. $wpseo_options = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpseo_advanced_settings_enabled($wpseo_options); 
  9.  

Defined (1)

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

/inc/wpseo-non-ajax-functions.php  
  1. function wpseo_advanced_settings_enabled( $wpseo_options ) { 
  2. return ( $wpseo_options['enable_setting_pages'] === true );