Automattic\WooCommerce\Internal\Admin\Notes
UnsecuredReportFiles::note_exists
Check if the note has been previously added.
Method of the class: UnsecuredReportFiles{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = UnsecuredReportFiles::note_exists();
UnsecuredReportFiles::note_exists() UnsecuredReportFiles::note exists code WC 10.3.3
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 );
}