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

Adapt the meta query used to filter the post overview on keyphrase.

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

add_filter( 'wpseo_change_keyphrase_filter_in_request', 'wp_kama_wpseo_change_keyphrase_filter_in_request_filter', 10, 2 );

/**
 * Function for `wpseo_change_keyphrase_filter_in_request` filter-hook.
 * 
 * @param array $keyphrase      The keyphrase used in the filter.
 * @param array $keyword_filter The current keyword filter.
 *
 * @return array
 */
function wp_kama_wpseo_change_keyphrase_filter_in_request_filter( $keyphrase, $keyword_filter ){

	// filter...
	return $keyphrase;
}
$keyphrase(массив)
The keyphrase used in the filter.
$keyword_filter(массив)
The current keyword filter.

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

WPSEO_Meta_Columns::collect_filters()
wpseo_change_keyphrase_filter_in_request
yoast/admin/class-meta-columns.php 424-428
$keyphrase_filter = apply_filters(
	'wpseo_change_keyphrase_filter_in_request',
	$this->get_keyword_filter( $current_keyword_filter ),
	$current_keyword_filter
);

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

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