PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / admin / metabox / class-metabox-analysis-readability.php

class-metabox-analysis-readability.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI trunk, at admin/metabox/class-metabox-analysis-readability.php

40 lines 929 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WPSEO plugin file.
4 *
5 * @package WPSEO\Admin\Metabox
6 */
7
8 /**
9 * Represents the readability analysis.
10 */
11 class WPSEO_Metabox_Analysis_Readability implements WPSEO_Metabox_Analysis {
12
13 /**
14 * Whether this analysis is enabled.
15 *
16 * @return bool Whether or not this analysis is enabled.
17 */
18 public function is_enabled() {
19 return $this->is_globally_enabled() && $this->is_user_enabled();
20 }
21
22 /**
23 * Whether or not this analysis is enabled by the user.
24 *
25 * @return bool Whether or not this analysis is enabled by the user.
26 */
27 public function is_user_enabled() {
28 return ! get_the_author_meta( 'wpseo_content_analysis_disable', get_current_user_id() );
29 }
30
31 /**
32 * Whether or not this analysis is enabled globally.
33 *
34 * @return bool Whether or not this analysis is enabled globally.
35 */
36 public function is_globally_enabled() {
37 return WPSEO_Options::get( 'content_analysis_active', true );
38 }
39 }
40