Yoast\WP\SEO\Helpers

Image_Helper::get_first_usable_content_image_for_post()protectedYoast 1.0

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() Yoast 22.4

protected function get_first_usable_content_image_for_post( $post_id ) {
	return WPSEO_Image_Utils::get_first_usable_content_image_for_post( $post_id );
}