File "uninstall.php"
Full Path: /home/flipjqml/onlinebetsolution.com/wp-content/plugins/call-now-button/uninstall.php
File size: 782 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
// Doc: https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/
// if uninstall.php is not called by WordPress, die
if (!defined('WP_UNINSTALL_PLUGIN')) {
die;
}
// Delete known options
$option_names = array('cnb', 'cnb_cloud_migration_done');
foreach ($option_names as $option_name) {
// Delete the standard options
delete_option($option_name);
// Delete site options in Multisite
delete_site_option($option_name);
}
// Delete notice dismissals
$options_slug = 'call-now-button';
global $wpdb;
$wpdb->query(
$wpdb->prepare(
"DELETE FROM $wpdb->options
WHERE option_name
LIKE %s",
$options_slug.'_dismissed_%' )
);
// Remove scheduled hook from src/admin/cron/cron.php
wp_clear_scheduled_hook('cnb_wp_info');