PluginProbe
Gianism / 1.2.2
Gianism v1.2.2
4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.4.0 5.0.0 5.0.1 5.0.2 5.1.0 5.2.1 5.2.2 5.3.0 6.0.0 6.0.1 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 All 65 releases
gianism / uninstall.php

uninstall.php in Gianism 1.2.2, at uninstall.php

24 lines 504 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Delete all data for Literally WordPress
4 *
5 * @package gianism
6 * @since 1.0
7 */
8 //Check whether WordPress is initialized or not.
9 if(!defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN')){
10 exit();
11 }
12
13 //Delete Option
14 delete_option('wp_gianism_option');
15
16 //Delete All message if exists.
17 $query = new WP_Query('post_type=gianism_message&posts_per_page=-1');
18 if($query->have_posts()){
19 while($query->have_posts()){
20 $query->the_post();
21 wp_delete_post(get_the_ID());
22 }
23 wp_reset_query();
24 }