Yoast\WP\SEO\Helpers

Indexing_Helper::has_reason │ public │ Yoast 1.0

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

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

Хуков нет.

Возвращает

bool. Whether an indexing reason has been set in the options.

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

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

Код Indexing_Helper::has_reason() Yoast 28.7

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

	return ! empty( $reason );
}