Yoast\WP\SEO\Helpers\Twitter

Image_Helper::get_by_id()publicYoast 1.0

Retrieves an image url by its id.

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

Хуков нет.

Возвращает

Строку. The image url.

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

$Image_Helper = new Image_Helper();
$Image_Helper->get_by_id( $image_id );
$image_id(int) (обязательный)
The image id.

Код Image_Helper::get_by_id() Yoast 19.11

public function get_by_id( $image_id ) {
	return $this->image->get_attachment_image_source( $image_id, $this->get_image_size() );
}