Automattic\WooCommerce\Admin\Notes
Note::set_name()
Set note name.
Method of the class: Note{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Note = new Note(); $Note->set_name( $name );
- $name(string) (required)
- Note name.
Note::set_name() Note::set name code WC 9.7.1
public function set_name( $name ) { // Don't allow empty names. if ( empty( $name ) ) { $this->error( 'admin_note_invalid_data', __( 'The admin note name prop cannot be empty.', 'woocommerce' ) ); } $this->set_prop( 'name', $name ); }