wpseo_disable_adjacent_rel_links хук-фильтрYoast 1.0

Filter: wpseo_disable_adjacent_rel_links Allows disabling of Yoast adjacent links if this is being handled by other code.

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

add_filter( 'wpseo_disable_adjacent_rel_links', 'wp_kama_wpseo_disable_adjacent_rel_links_filter' );

/**
 * Function for `wpseo_disable_adjacent_rel_links` filter-hook.
 * 
 * @param bool $links_generated Indicates if other code has handled adjacent links.
 *
 * @return bool
 */
function wp_kama_wpseo_disable_adjacent_rel_links_filter( $links_generated ){

	// filter...
	return $links_generated;
}
$links_generated(true|false)
Indicates if other code has handled adjacent links.

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

Pagination_Helper::is_rel_adjacent_disabled()
wpseo_disable_adjacent_rel_links
yoast/src/helpers/pagination-helper.php 54
return \apply_filters( 'wpseo_disable_adjacent_rel_links', false );

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

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