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