Skip to content

Commit

Permalink
Clear queue on deactivation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisnissle committed Oct 25, 2023
1 parent fda2a91 commit e89e125
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
Binary file modified i18n/languages/woocommerce-germanized-de_DE.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions i18n/languages/woocommerce-germanized-de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgstr ""
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
"germanized\n"
"POT-Creation-Date: 2023-10-24T10:51:25+00:00\n"
"PO-Revision-Date: 2023-10-24 12:55+0200\n"
"PO-Revision-Date: 2023-10-24 16:18+0200\n"
"Last-Translator: Dennis Nissle <[email protected]>\n"
"Language-Team: \n"
"Language: de_DE\n"
Expand Down Expand Up @@ -14695,8 +14695,8 @@ msgid ""
"Do only offer pay by invoice to customers who have at least completed one "
"order."
msgstr ""
"Aktiviere die Zahlungsart nur dann, wenn der Kunde bereits eine Bestellung "
"erfolgreich abgeschlossen hat."
"Aktiviere die Zahlungsart nur dann, wenn der Kunde bereits für eine "
"Bestellung bezahlt hat."

# @ woocommerce-germanized
#: includes/updates/woocommerce-gzd-update-2.0.1.php:18
Expand Down
Binary file modified i18n/languages/woocommerce-germanized-de_DE_formal.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions i18n/languages/woocommerce-germanized-de_DE_formal.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgstr ""
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
"germanized\n"
"POT-Creation-Date: 2023-10-24T10:51:25+00:00\n"
"PO-Revision-Date: 2023-10-24 12:55+0200\n"
"PO-Revision-Date: 2023-10-24 16:18+0200\n"
"Last-Translator: Dennis Nissle <[email protected]>\n"
"Language-Team: \n"
"Language: de_DE@formal\n"
Expand Down Expand Up @@ -14676,8 +14676,8 @@ msgid ""
"Do only offer pay by invoice to customers who have at least completed one "
"order."
msgstr ""
"Aktiviert die Zahlungsart nur dann, wenn der Kunde bereits eine Bestellung "
"erfolgreich abgeschlossen hat."
"Aktiviere die Zahlungsart nur dann, wenn der Kunde bereits für eine "
"Bestellung bezahlt hat."

# @ woocommerce-germanized
#: includes/updates/woocommerce-gzd-update-2.0.1.php:18
Expand Down
12 changes: 12 additions & 0 deletions includes/class-wc-gzd-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,18 @@ public static function deactivate() {
foreach ( $notices->get_notes() as $note ) {
$note->delete_note();
}

wp_clear_scheduled_hook( 'woocommerce_gzd_customer_cleanup' );

if ( function_exists( 'as_unschedule_all_actions' ) ) {
$hooks = array(
'woocommerce_gzd_shipments_daily_cleanup'
);

foreach( $hooks as $hook ) {
as_unschedule_all_actions( $hook );
}
}
}

/**
Expand Down

0 comments on commit e89e125

Please sign in to comment.