Yoast\WP\SEO\Helpers

Indexing_Helper::has_reason()publicYoast 1.0

Determines whether an indexing reason has been set in the options.

Метод класса: Indexing_Helper{}

Хуков нет.

Возвращает

true|false. Whether an indexing reason has been set in the options.

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

$Indexing_Helper = new Indexing_Helper();
$Indexing_Helper->has_reason();

Код Indexing_Helper::has_reason() Yoast 24.0

public function has_reason() {
	$reason = $this->get_reason();

	return ! empty( $reason );
}