Yoast\WP\SEO\Conditionals

Should_Index_Links_Conditional::is_met()publicYoast 1.0

Returns true when the links on this website should be indexed.

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

Хуки из метода

Возвращает

true|false. true when the links on this website should be indexed.

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

$Should_Index_Links_Conditional = new Should_Index_Links_Conditional();
$Should_Index_Links_Conditional->is_met();

Код Should_Index_Links_Conditional::is_met() Yoast 19.10

public function is_met() {
	$should_index_links = $this->options_helper->get( 'enable_text_link_counter' );

	/**
	 * Filter: 'wpseo_should_index_links' - Allows disabling of Yoast's links indexation.
	 *
	 * @api bool To disable the indexation, return false.
	 */
	return \apply_filters( 'wpseo_should_index_links', $should_index_links );
}