Automattic\WooCommerce\Admin\Notes
Notes::delete_note
Soft delete of a note.
Method of the class: Notes{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Notes::delete_note( $note );
- $note(Note) (required)
- The note that will be deleted.
Notes::delete_note() Notes::delete note code WC 11.3.0
public static function delete_note( $note ) {
$note->set_is_deleted( 1 );
$note->save();
}