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