Yoast\WP\SEO\Helpers
Post_Helper::get_the_excerpt() public Yoast 1.0
Retrieves the post excerpt (without tags).
{} Это метод класса: Post_Helper{}
Хуков нет.
Возвращает
Строку. Post excerpt (without tags).
Использование
$Post_Helper = new Post_Helper(); $Post_Helper->get_the_excerpt( $post_id );
- $post_id(число) (обязательный)
- Post ID.
Код Post_Helper::get_the_excerpt() Post Helper::get the excerpt Yoast 15.6.2
public function get_the_excerpt( $post_id ) {
return $this->string->strip_all_tags( \get_the_excerpt( $post_id ) );
}