Automattic\WooCommerce\Admin\Notes
Note::set_name
Set note name.
Method of the class: Note{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Note = new Note(); $Note->set_name( $name );
- $name(string) (required)
- Note name.
Note::set_name() Note::set name code WC 10.4.3
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 );
}