Plugin Directory

Changeset 3269372


Ignore:
Timestamp:
04/09/2025 07:06:10 AM (12 months ago)
Author:
mustangpay
Message:

Initial plugin release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mustangpay/trunk/mustangpay.php

    r3258184 r3269372  
    2828remove_action('admin_init', 'check_admin_referer');
    2929
     30    // 添加卸载钩子
     31register_uninstall_hook( __FILE__, 'mustangpay_uninstall' );
     32
     33function mustangpay_uninstall() {
     34    // 删除所有相关的选项
     35    delete_option( 'woocommerce_mustangpay_settings' );
     36    delete_option( 'woocommerce_mustangpay_enabled' );
     37    delete_option( 'woocommerce_mustangpay_title' );
     38    delete_option( 'woocommerce_mustangpay_description' );
     39    delete_option( 'woocommerce_mustangpay_mode' );
     40    delete_option( 'woocommerce_mustangpay_merchant_id_test' );
     41    delete_option( 'woocommerce_mustangpay_rsaPrivateKey_test' );
     42    delete_option( 'woocommerce_mustangpay_merchant_id' );
     43    delete_option( 'woocommerce_mustangpay_rsaPrivateKey' );
     44}
    3045
    3146function mustangpay_custom_refund_button($order) {
Note: See TracChangeset for help on using the changeset viewer.