Automattic\WooCommerce\Admin\Notes

Notes::delete_note()public staticWC 1.0

Soft delete of a note.

Method of the class: Notes{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = Notes::delete_note( $note );
$note(Note) (required)
The note that will be deleted.

Notes::delete_note() code WC 8.6.1

public static function delete_note( $note ) {
	$note->set_is_deleted( 1 );
	$note->save();
}