Yoast\WP\SEO\Helpers
Image_Helper::get_first_content_image_for_term()
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() Image Helper::get first content image for term Yoast 25.1
protected function get_first_content_image_for_term( $term_id ) { return WPSEO_Image_Utils::get_first_content_image_for_term( $term_id ); }