Automattic\WooCommerce\Internal\Admin\Notes

UnsecuredReportFiles::possibly_add_note()public staticWC 1.0

Add the note if it passes predefined conditions.

Method of the class: UnsecuredReportFiles{}

No Hooks.

Return

null. Nothing.

Usage

$result = UnsecuredReportFiles::possibly_add_note();

UnsecuredReportFiles::possibly_add_note() code WC 7.1.1

public static function possibly_add_note() {
	$note = self::get_note();

	if ( self::note_exists() ) {
		return;
	}

	$note->save();
}