Yoast\WP\SEO\should_index_indexables хук-фильтрYoast 18.2

Filter: 'Yoast\WP\SEO\should_index_indexables' - Allow developers to enable / disable creating indexables. Warning: overriding the intended action may cause problems when moving from a staging to a production environment because indexable permalinks may get set incorrectly.

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

add_filter( 'Yoast\WP\SEO\should_index_indexables', 'wp_kama_Yoast\WP\SEO\should_index_indexables_filter' );

/**
 * Function for `Yoast\WP\SEO\should_index_indexables` filter-hook.
 * 
 * @param bool $should_index Whether the site's indexables should be created.
 *
 * @return bool
 */
function wp_kama_Yoast\WP\SEO\should_index_indexables_filter( $should_index ){

	// filter...
	return $should_index;
}
$should_index(true|false)
Whether the site's indexables should be created.

Список изменений

С версии 18.2 Введена.

Где вызывается хук

Indexable_Helper::should_index_indexables()
Yoast\WP\SEO\should_index_indexables
yoast/src/helpers/indexable-helper.php 222
return (bool) \apply_filters( 'Yoast\WP\SEO\should_index_indexables', $should_index );

Где используется хук в Yoast SEO

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