WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
класс не описан

WPSEO_Metabox_Analysis_Readability{} Yoast 1.0

Represents the readability analysis.

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WPSEO_Metabox_Analysis_Readability = new WPSEO_Metabox_Analysis_Readability();
// use class methods

Методы

  1. is_enabled()
  2. is_user_enabled()
  3. is_globally_enabled()

Код WPSEO_Metabox_Analysis_Readability{} Yoast 15.2

<?php
class WPSEO_Metabox_Analysis_Readability 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_content_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( 'content_analysis_active', true );
	}
}