Yoast\WP\SEO\Helpers

Image_Helper::get_first_content_image_for_term()protectedYoast 1.0

Gets the term's first usable content image. Null if none is available.

Метод класса: Image_Helper{}

Хуков нет.

Возвращает

Строку|null. The image URL.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_first_content_image_for_term( $term_id );
$term_id(int) (обязательный)
The term id.

Код Image_Helper::get_first_content_image_for_term() Yoast 22.4

protected function get_first_content_image_for_term( $term_id ) {
	return WPSEO_Image_Utils::get_first_content_image_for_term( $term_id );
}