| Server IP : 69.72.244.102 / Your IP : 216.73.216.164 Web Server : LiteSpeed System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : konzalta ( 1271) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/konzalta/public_html/wp-content/plugins/pinterest-for-woocommerce/ |
Upload File : |
<?php
/**
* WordPress Plugin Uninstall
*
* Uninstalling WordPress Plugin.
*
* @package Pinterest_For_Woocommerce/Uninstaller
* @version 1.0.0
*/
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
require_once __DIR__ . '/pinterest-for-woocommerce.php';
Pinterest_For_Woocommerce::disconnect();
$plugin_settings = get_option( 'pinterest_for_woocommerce' );
if ( $plugin_settings['erase_plugin_data'] ) {
delete_option( 'pinterest_for_woocommerce' );
delete_option( 'pinterest_for_woocommerce_data' );
delete_option( 'pinterest_for_woocommerce_marketing_notifications_init_timestamp' );
delete_option( 'pinterest_for_woocommerce_account_connection_timestamp' );
delete_option( PINTEREST_FOR_WOOCOMMERCE_PINTEREST_API_VERSION );
delete_option( 'pinterest-for-woocommerce-update-version' );
}
if ( function_exists( 'as_unschedule_all_actions' ) ) {
as_unschedule_all_actions( 'pinterest-for-woocommerce-handle-sync', array(), 'pinterest-for-woocommerce' );
as_unschedule_all_actions( 'pinterest-for-woocommerce-feed-generation', array(), 'pinterest-for-woocommerce' );
as_unschedule_all_actions( 'pinterest-for-woocommerce-start-feed-generation', array(), 'pinterest-for-woocommerce' );
}
Automattic\WooCommerce\Pinterest\Notes\TokenExchangeFailure::delete_failure_note();