PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / trunk
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More vtrunk
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
content-control / uninstall.php

uninstall.php in Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More trunk, at uninstall.php

33 lines 622 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Content Control Uninstall File
4 *
5 * @package ContentControl
6 */
7
8 namespace ContentControl;
9
10 defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
11
12 /**
13 * Uninstall Content Control
14 *
15 * @return void
16 */
17 function remove_wp_options_data() {
18 $keys = [
19 'content_control_license',
20 'content_control_pro_activation_date',
21 'content_control_installed_on',
22 'content_control_version',
23 'content_control_data_versioning',
24 'content_control_debug_log_token', // delete log first.
25 'content_control_known_blockTypes',
26 'content_control_completed_upgrades',
27 ];
28
29 foreach ( $keys as $key ) {
30 delete_option( $key );
31 }
32 }
33