Automattic\WooCommerce\Admin\Notes

Note::set_name()publicWC 1.0

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() code WC 8.7.0

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 );
}