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

Filter: wpseo_metadesc Allow changing the Yoast SEO meta description sentence.

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

add_filter( 'wpseo_metadesc', 'wp_kama_wpseo_metadesc_filter', 10, 2 );

/**
 * Function for `wpseo_metadesc` filter-hook.
 * 
 * @param string                 $meta_description The description sentence.
 * @param Indexable_Presentation $presentation     The presentation of an indexable.
 *
 * @return string
 */
function wp_kama_wpseo_metadesc_filter( $meta_description, $presentation ){

	// filter...
	return $meta_description;
}
$meta_description(строка)
The description sentence.
$presentation(Indexable_Presentation)
The presentation of an indexable.

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

Meta_Description_Presenter::get()
wpseo_metadesc
yoast/src/presenters/meta-description-presenter.php 59
$meta_description = \apply_filters( 'wpseo_metadesc', $meta_description, $this->presentation );

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

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