Automattic\WooCommerce\Admin\Notes

Note::get_imagepublicWC 1.0

Deprecated since 10.8.0 Inbox notes no longer render images; the field will be removed in a future release.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Get note image.

Method of the class: Note{}

No Hooks.

Returns

String.

Usage

$Note = new Note();
$Note->get_image( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

Changelog

Deprecated since 10.8.0 Inbox notes no longer render images; the field will be removed in a future release.

Note::get_image() code WC 10.9.1

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