Automattic\WooCommerce\Admin\Notes

Note::get_layout()publicWC 1.0

Get note layout (the old notes won't have one).

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

No Hooks.

Return

Array.

Usage

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

Code of Note::get_layout() WC 7.1.0

public function get_layout( $context = 'view' ) {
	return $this->get_prop( 'layout', $context );
}