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

Filters the keyphrases collected by the Wincher integration from the post.


add_filter( 'wpseo_wincher_keyphrases_from_post', 'wp_kama_wpseo_wincher_keyphrases_from_post_filter', 10, 2 );

 * Function for `wpseo_wincher_keyphrases_from_post` filter-hook.
 * @param array $keyphrases The keyphrases array.
 * @param int   $post_id    The ID of the post.
 * @return array
function wp_kama_wpseo_wincher_keyphrases_from_post_filter( $keyphrases, $post_id ){

	// filter...
	return $keyphrases;
The keyphrases array.
The ID of the post.

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

yoast/src/actions/wincher/wincher-keyphrases-action.php 270
return \apply_filters( 'wpseo_wincher_keyphrases_from_post', $keyphrases, $post->ID );

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

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