Yoast\WP\SEO\open_graph_description_(object_type) хук-фильтрYoast 1.0

Allow changing the Open Graph description.

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

add_filter( 'Yoast\WP\SEO\open_graph_description_(object_type)', 'wp_kama_Yoast\WP\SEO\open_graph_description_object_type_filter', 10, 2 );

/**
 * Function for `Yoast\WP\SEO\open_graph_description_(object_type)` filter-hook.
 * 
 * @param string $description    The default description.
 * @param string $object_subtype The object subtype.
 *
 * @return string
 */
function wp_kama_Yoast\WP\SEO\open_graph_description_object_type_filter( $description, $object_subtype ){

	// filter...
	return $description;
}
$description(строка)
The default description.
$object_subtype(строка)
The object subtype.

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

Values_Helper::get_open_graph_description()
Yoast\WP\SEO\open_graph_description_(object_type)
yoast/src/helpers/open-graph/values-helper.php 45
return \apply_filters( 'Yoast\WP\SEO\open_graph_description_' . $object_type, $description, $object_subtype );

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

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