HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/www/shaneconrad.me/wp-content/plugins/easy-table-of-contents/uninstall.php
<?php
/**
 * Delete plugin data when plugin is uninstalled
 * @since   2.0.73
 * */
// Exit if accessed directly
if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
   exit;

/**
 * Delete data when delete data option is enabled
 * @since   2.0.73
 * */
function eztoc_delete_data_on_uninstall() {

   $ez_toc_options  =  get_option( 'ez-toc-settings' );
   if ( is_array( $ez_toc_options ) && ! empty( $ez_toc_options['delete-data-on-uninstall'] ) ) {

      delete_option( 'ez-toc-settings' );
      delete_option( 'ez-toc-post-meta-content' );
      delete_option( 'ez_toc_do_activation_redirect' );

   }

}

eztoc_delete_data_on_uninstall();