Automattic\WooCommerce\Admin\Notes

Notes::get_note_by_name()public staticWC 1.0

Method of the class: Notes{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = Notes::get_note_by_name( $note_name );
$note_name (required)
-

Notes::get_note_by_name() code WC 8.7.0

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