wpseo_should_index_links хук-фильтр . Yoast 1.0
Filter: 'wpseo_should_index_links' - Allows disabling of Yoast's links indexation.
Использование
add_filter( 'wpseo_should_index_links', 'filter_function_name_9720' ); function filter_function_name_9720( $should_index_links ){ // filter... return $should_index_links; }
- $should_index_links(true/false)
- To disable the indexation, return false.
Где вызывается хук
wpseo_should_index_links
yoast/src/conditionals/should-index-links-conditional.php 41
return \apply_filters( 'wpseo_should_index_links', $should_index_links );