✏️ 编辑:uninstall.php
路径:
/home/boguraj1/craftandcreation.xyz/wp-content/plugins/cartflows-pro/uninstall.php
大小:1.1 KB · 修改:2025-05-21 12:53:56 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /** * CartFlows Pro * Delete Plugin Data. * * @package CartFlows Pro */ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { exit; } global $wpdb; $is_delete = get_option( 'cartflows_pro_delete_plugin_data', false ); if ( 'enable' === $is_delete ) { $product_id = 'cartflows'; $options = array( 'cartflows-pro-version', '_cartflows_offer_global_settings', 'wc_am_client_' . $product_id . '_instance', 'wc_am_client_' . $product_id . '_deactivate_checkbox', 'wc_am_client_' . $product_id . '_activated', 'wc_am_client_' . $product_id . '_api_key', 'wc_am_client_' . $product_id . '', 'wc_am_client_' . $product_id . '_activated', 'cartflows_database_tables_created', 'cartflows_pro_delete_plugin_data', ); foreach ( $options as $index => $key ) { delete_option( $key ); } wp_clear_scheduled_hook( 'carflows_schedule_normalize_order_status' ); // phpcs:disable $wpdb->get_results( "DROP TABLE IF EXISTS {$wpdb->prefix}cartflows_visits_meta" ); // db call ok; no-cache ok. $wpdb->get_results( "DROP TABLE IF EXISTS {$wpdb->prefix}cartflows_visits" ); // db call ok; no-cache ok. }
💾 保存
取消
保存为 UTF-8,换行统一为 LF