'5.6.30', 'WordPress' => '4.2', ) ); if ( false === $asset_finder_requirements->pass() ) { // Deactivate the plugin and print an admin notice. $asset_finder_requirements->halt(); // Halt the execution of the rest of the plugin. return; } if ( is_admin() ) { require_once( ASSET_FINDER_PATH . 'classes/AdminSettings.php' ); } elseif ( ! isset( $_GET[ 'afts' ] ) ) { require_once( ASSET_FINDER_PATH . 'classes/DisplayWeb.php' ); } else { require_once( ASSET_FINDER_PATH . 'classes/AssetCollector.php' ); } register_uninstall_hook(__FILE__, 'asset_finder_uninstall_plugin'); function asset_finder_uninstall_plugin() { delete_option( 'asset_finder' ); }