Automattic\WooCommerce\Admin\Notes

Notes::get_note_status()public staticWC 1.0

Get the status of a given note by name.

Метод класса: Notes{}

Хуков нет.

Возвращает

Строку|true|false. The note status.

Использование

$result = Notes::get_note_status( $note_name );
$note_name(строка) (обязательный)
Name of the note.

Код Notes::get_note_status() WC 8.7.0

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

	if ( ! $note ) {
		return false;
	}

	return $note->get_status();
}