Yoast\WP\SEO\Services\Health_Check

Default_Tagline_Runner::run()publicYoast 1.0

Runs the health check. Checks if the tagline is set to WordPress' default tagline, or to its set translation.

{} Это метод класса: Default_Tagline_Runner{}

Хуков нет.

Возвращает

null. Ничего.

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

$Default_Tagline_Runner = new Default_Tagline_Runner();
$Default_Tagline_Runner->run();

Код Default_Tagline_Runner::run() Yoast 19.2

public function run() {
	$blog_description = \get_option( 'blogdescription' );

	// We are using the WordPress internal translation.
	$translated_blog_description = \__( 'Just another WordPress site', 'default' );

	$this->has_default_tagline = $translated_blog_description === $blog_description || $blog_description === self::DEFAULT_BLOG_DESCRIPTION;
}