Skip to content
Permalink
Browse files

Uninstall script

  • Loading branch information...
MJGrant committed Jun 23, 2019
1 parent bd71548 commit 1ee8dd962a79fc8dfd088c5f0df6358057aa2aec
Showing with 17 additions and 0 deletions.
  1. +17 −0 amazin-product-box/uninstall.php
@@ -0,0 +1,17 @@
<?php
// if uninstall.php is not called by WordPress, die
if (!defined('WP_UNINSTALL_PLUGIN')) {
die;
}
$option_name = 'amazin_product_box_option_headline';
delete_option($option_name);
// for site options in Multisite
delete_site_option($option_name);
// drop a custom database table
global $wpdb;
$wpdb->query("DELETE FROM {$wpdb->prefix}posts WHERE post_type='amazin_product_box'");
?>

0 comments on commit 1ee8dd9

Please sign in to comment.
You can’t perform that action at this time.