Automattic\WooCommerce\Admin\Notes
SetUpAdditionalPaymentTypes::on_deactivate_wcpay() public WC 1.0
Executes when the WooCommerce Payments plugin is deactivated. Possibly hard-deletes the note if it is in the database. Hard-delete is used instead of soft-delete or actioning the note because we need to show the note if the plugin is activated again.
{} Это метод класса: SetUpAdditionalPaymentTypes{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$result = SetUpAdditionalPaymentTypes::on_deactivate_wcpay();
Код SetUpAdditionalPaymentTypes::on_deactivate_wcpay() SetUpAdditionalPaymentTypes::on deactivate wcpay WC 5.0.0
public static function on_deactivate_wcpay() {
self::possibly_delete_note();
}