HEX
Server: Apache/2.4.65 (Unix) OpenSSL/1.1.1f
System: Linux dsserver6 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
User: studiomoguls (1002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/studiomoguls/webapps/Studio-mogulsc-clone/wp-content/plugins/clickfunnels/uninstall.php
<?php
  // Don't delete posts, this was causing issues where people wanted to be able to
  // Uninstall and reinstall. Reset data is available for a true uninstall

  // $args = array(
  //   'posts_per_page' => -1,
  //   'post_type' =>'clickfunnels'
  // );
  // $posts = get_posts( $args );
  // $total = count($posts);
  // $current = 0;
  // if (is_array($posts) && $total) {
  //    foreach ($posts as $post) {
  //       wp_delete_post( $post->ID, true);
  //    }
  // }
  delete_option('clickfunnels_api_email');
  delete_option('clickfunnels_api_auth');
  delete_option('clickfunnels_display_method');
  delete_option('clickfunnels_favicon_method');
  delete_option('clickfunnels_additional_snippet');
?>