PluginProbe
Bricksable for Bricks Builder / 1.3.2
Bricksable for Bricks Builder v1.3.2
1.2.9 1.3.0 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.31 1.4.32 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 All 132 releases
bricksable / uninstall.php

uninstall.php in Bricksable for Bricks Builder 1.3.2, at uninstall.php

24 lines 714 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This file runs when the plugin in uninstalled (deleted).
4 * This will not run when the plugin is deactivated.
5 * Ideally you will add all your clean-up scripts here
6 * that will clean-up unused meta, options, etc. in the database.
7 *
8 * @package Bricksable/Uninstall
9 */
10
11 // If plugin is not being uninstalled, exit (do nothing).
12 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
13 exit;
14 }
15
16 // Do something here if plugin is being uninstalled.
17 if ( 'on' === get_option( 'bricksable_uninstall_on_delete' ) ) {
18 // Remove all matching options from the database.
19 foreach ( wp_load_alloptions() as $option => $value ) {
20 if ( strpos( $option, 'bricksable_' ) !== false ) {
21 delete_option( $option );
22 }
23 }
24 }