Yoast\WP\SEO\Helpers
Image_Helper::get_first_usable_content_image_for_post()
Retrieves the first usable content image for a post.
Метод класса: Image_Helper{}
Хуков нет.
Возвращает
Строку|null
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_first_usable_content_image_for_post( $post_id );
- $post_id(int) (обязательный)
- The post id to extract the images from.
Код Image_Helper::get_first_usable_content_image_for_post() Image Helper::get first usable content image for post Yoast 25.0
protected function get_first_usable_content_image_for_post( $post_id ) { return WPSEO_Image_Utils::get_first_usable_content_image_for_post( $post_id ); }