Yoast\WP\SEO\open_graph_description_(object_type)
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.
Где вызывается хук
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 );