Automattic\WooCommerce\Admin\Notes
Note::get_layout
Deprecated since 10.8.0 Inbox notes no longer support layout variants; only 'plain' is valid and 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 layout.
Method of the class: Note{}
No Hooks.
Returns
String.
Usage
$Note = new Note(); $Note->get_layout( $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 support layout variants; only 'plain' is valid and the field will be removed in a future release. |
Note::get_layout() Note::get layout code WC 10.9.3
public function get_layout( $context = 'view' ) {
wc_deprecated_function( __METHOD__, '10.8.0' );
return $this->get_prop( 'layout', $context );
}