Automattic\WooCommerce\Admin\Notes

Note::get_image │ public │ WC 1.0

Устарела с версии 10.8.0 Inbox notes no longer render images; the field will be removed in a future release.. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Get note image.

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

Хуков нет.

Возвращает

string.

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

$Note = new Note();
$Note->get_image( $context );
$context(строка)
What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'

Список изменений

Устарела с 10.8.0 Inbox notes no longer render images; the field will be removed in a future release.

Код Note::get_image() WC 11.3.0

public function get_image( $context = 'view' ) {
	wc_deprecated_function( __METHOD__, '10.8.0' );
	return $this->get_prop( 'image', $context );
}