Automattic\WooCommerce\Internal\Admin\Notes

UnsecuredReportFiles::note_exists()public staticWC 1.0

Check if the note has been previously added.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = UnsecuredReportFiles::note_exists();

Код UnsecuredReportFiles::note_exists() WC 8.7.0

public static function note_exists() {
	$data_store = \WC_Data_Store::load( 'admin-note' );
	$note_ids   = $data_store->get_notes_with_name( self::NOTE_NAME );
	return ! empty( $note_ids );
}