WPSEO_Content_Images::get_images
Retrieves images from the post content.
Метод класса: WPSEO_Content_Images{}
Хуков нет.
Возвращает
Массив. An array of images found in this post.
Использование
$WPSEO_Content_Images = new WPSEO_Content_Images(); $WPSEO_Content_Images->get_images( $post_id, $post );
- $post_id(int) (обязательный)
- The post ID.
- $post(WP_Post|null)
- The post object.
По умолчанию:null
Код WPSEO_Content_Images::get_images() WPSEO Content Images::get images Yoast 27.3
public function get_images( $post_id, $post = null ) {
return $this->get_images_from_content( $this->get_post_content( $post_id, $post ) );
}