Automattic\WooCommerce\Admin\Notes

Notes::get_note_status()public staticWC 1.0

Get the status of a given note by name.

Method of the class: Notes{}

No Hooks.

Return

String|true|false. The note status.

Usage

$result = Notes::get_note_status( $note_name );
$note_name(string) (required)
Name of the note.

Notes::get_note_status() code WC 7.1.1

public static function get_note_status( $note_name ) {
	$note = self::get_note_by_name( $note_name );

	if ( ! $note ) {
		return false;
	}

	return $note->get_status();
}