Yoast\WP\SEO\open_graph_title_(object_type)
Allow changing the Open Graph title.
Использование
add_filter( 'Yoast\WP\SEO\open_graph_title_(object_type)', 'wp_kama_Yoast\WP\SEO\open_graph_title_object_type_filter', 10, 2 );
/**
* Function for `Yoast\WP\SEO\open_graph_title_(object_type)` filter-hook.
*
* @param string $title The default title.
* @param string $object_subtype The object subtype.
*
* @return string
*/
function wp_kama_Yoast\WP\SEO\open_graph_title_object_type_filter( $title, $object_subtype ){
// filter...
return $title;
}
- $title(строка)
- The default title.
- $object_subtype(строка)
- The object subtype.
Где вызывается хук
Yoast\WP\SEO\open_graph_title_(object_type)
yoast/src/helpers/open-graph/values-helper.php 26
return \apply_filters( 'Yoast\WP\SEO\open_graph_title_' . $object_type, $title, $object_subtype );