Automattic\WooCommerce\Admin\Notes
Notes::get_note_by_name
Method of the class: Notes{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Notes::get_note_by_name( $note_name );
- $note_name(required)
- .
Notes::get_note_by_name() Notes::get note by name code WC 10.6.2
public static function get_note_by_name( $note_name ) {
$data_store = self::load_data_store();
$note_ids = $data_store->get_notes_with_name( $note_name );
if ( empty( $note_ids ) ) {
return false;
}
return self::get_note( $note_ids[0] );
}