Yoast\WP\SEO\Conditionals
Should_Index_Links_Conditional::is_met()
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() Should Index Links Conditional::is met Yoast 23.5
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. * * @param bool $enable To disable the indexation, return false. */ return \apply_filters( 'wpseo_should_index_links', $should_index_links ); }