Yoast\WP\SEO\Presentations
Indexable_Post_Type_Presentation::generate_open_graph_description() public Yoast 1.0
Generates the open graph description.
{} Это метод класса: Indexable_Post_Type_Presentation{}
Хуков нет.
Возвращает
Строку. The open graph description.
Использование
$Indexable_Post_Type_Presentation = new Indexable_Post_Type_Presentation(); $Indexable_Post_Type_Presentation->generate_open_graph_description();
Код Indexable_Post_Type_Presentation::generate_open_graph_description() Indexable Post Type Presentation::generate open graph description Yoast 15.6.2
public function generate_open_graph_description() {
if ( $this->model->open_graph_description ) {
$open_graph_description = $this->model->open_graph_description;
}
if ( empty( $open_graph_description ) ) {
$open_graph_description = $this->meta_description;
}
if ( empty( $open_graph_description ) ) {
$open_graph_description = $this->post->get_the_excerpt( $this->model->object_id );
}
return $this->post->strip_shortcodes( $open_graph_description );
}