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;
}
$keyphrases(массив)
The keyphrases array.
$post_id(int)
The ID of the post.

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

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

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

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