Automattic\WooCommerce\Admin\Notes

Note::set_image │ public │ WC 1.0

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

Set note image.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$Note = new Note();
$Note->set_image( $image );
$image(строка) (обязательный)
Note image.

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

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

Код Note::set_image() WC 11.3.0

public function set_image( $image ) {
	wc_deprecated_function( __METHOD__, '10.8.0' );
	$this->set_prop( 'image', $image );
}