Automattic\WooCommerce\Internal\Admin\Notes
WooSubscriptionsNotes::remove_notes()
Clears all connection or subscription notes.
Method of the class: WooSubscriptionsNotes{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WooSubscriptionsNotes = new WooSubscriptionsNotes(); $WooSubscriptionsNotes->remove_notes();
WooSubscriptionsNotes::remove_notes() WooSubscriptionsNotes::remove notes code WC 9.7.1
public function remove_notes() { Notes::delete_notes_with_name( self::CONNECTION_NOTE_NAME ); Notes::delete_notes_with_name( self::SUBSCRIPTION_NOTE_NAME ); }