Commit realizado el 12:13:52 08-04-2024
This commit is contained in:
16
wp-content/plugins/cf7-hubspot/uninstall.php
Normal file
16
wp-content/plugins/cf7-hubspot/uninstall.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Uninstall
|
||||
*/
|
||||
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
||||
exit;
|
||||
}
|
||||
$path=plugin_dir_path(__FILE__);
|
||||
include_once($path . "cf7-hubspot.php");
|
||||
include_once($path . "includes/install.php");
|
||||
$install=new vxcf_hubspot_install();
|
||||
$settings=get_option($install->id.'_settings',array());
|
||||
if(!empty($settings['plugin_data'])){
|
||||
$install->remove_data();
|
||||
}
|
||||
|
Reference in New Issue
Block a user