Yoast\WP\SEO\Helpers\Open_Graph
Values_Helper::get_open_graph_description()
Filters the Open Graph description.
Метод класса: Values_Helper{}
Хуки из метода
Возвращает
Строку
. The open graph description.
Использование
$Values_Helper = new Values_Helper(); $Values_Helper->get_open_graph_description( $description, $object_type, $object_subtype );
- $description(строка) (обязательный)
- The default description.
- $object_type(строка) (обязательный)
- The object type.
- $object_subtype(строка) (обязательный)
- The object subtype.
Код Values_Helper::get_open_graph_description() Values Helper::get open graph description Yoast 24.4
public function get_open_graph_description( $description, $object_type, $object_subtype ) { /** * Allow changing the Open Graph description. * * @param string $description The default description. * @param string $object_subtype The object subtype. */ return \apply_filters( 'Yoast\WP\SEO\open_graph_description_' . $object_type, $description, $object_subtype ); }