Automattic\WooCommerce\Internal\Admin\Notes

WooSubscriptionsNotes::remove_notespublicWC 1.0

Clears all connection or subscription notes.

Метод класса: WooSubscriptionsNotes{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WooSubscriptionsNotes = new WooSubscriptionsNotes();
$WooSubscriptionsNotes->remove_notes();

Код WooSubscriptionsNotes::remove_notes() WC 10.9.1

public function remove_notes() {
	Notes::delete_notes_with_name( self::CONNECTION_NOTE_NAME );
	Notes::delete_notes_with_name( self::SUBSCRIPTION_NOTE_NAME );
}