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