|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/nandedex/www/wp-content/plugins/wordpress-seo/admin/metabox/ |
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Metabox
*/
/**
* Represents the SEO analysis.
*/
class WPSEO_Metabox_Analysis_SEO implements WPSEO_Metabox_Analysis {
/**
* Whether this analysis is enabled.
*
* @return bool Whether or not this analysis is enabled.
*/
public function is_enabled() {
return $this->is_globally_enabled() && $this->is_user_enabled();
}
/**
* Whether or not this analysis is enabled by the user.
*
* @return bool Whether or not this analysis is enabled by the user.
*/
public function is_user_enabled() {
return ! get_the_author_meta( 'wpseo_keyword_analysis_disable', get_current_user_id() );
}
/**
* Whether or not this analysis is enabled globally.
*
* @return bool Whether or not this analysis is enabled globally.
*/
public function is_globally_enabled() {
return WPSEO_Options::get( 'keyword_analysis_active', true );
}
}