PluginProbe
Float menu – awesome floating side menu / 3.3.1
Float menu – awesome floating side menu v3.3.1
7.2.5 trunk 2.1 2.2 3.0.1 3.1 3.2.2 3.3.1 3.5 3.5.1 3.5.2 3.5.3. 3.5.4 4.0 4.1 4.1.1 4.2 4.3 4.3.1 4.3.2 5.0 5.0.1 5.0.2 5.0.3 5.1 All 57 releases
float-menu / includes / deactivator.php

deactivator.php in Float menu – awesome floating side menu 3.3.1, at includes/deactivator.php

30 lines 682 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Deactivator function
4 *
5 * @package Wow_Plugin
6 * @subpackage
7 * @copyright Copyright (c) 2018, Dmytro Lobov
8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 * @since 1.0
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) exit;
13
14 if ( is_dir( $basedir ) ) {
15
16 $is_empty = count( glob( $basedir . '*' ) ) ? true : false;
17 if ( $is_empty === true ) {
18 $handle = opendir( $basedir );
19
20 while ( false !== ($file = readdir( $handle )) ) {
21
22 if ( $file != "." && $file != ".." ) {
23 wp_delete_file( $basedir . $file );
24 }
25
26 }
27 closedir( $dir_handle );
28 }
29 rmdir( $basedir );
30 }