PluginProbe
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms / 3.6.2
Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms v3.6.2
3.53.0 3.52.0 3.51.0 3.50.0 3.45.0 3.38.0 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.40.0 3.40.1 3.41.0 3.42.0 3.43.0 3.44.0 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 3.6.2 All 177 releases
simple-tags / uninstall.php

uninstall.php in Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms 3.6.2, at uninstall.php

36 lines 915 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 //if uninstall not called from WordPress exit
4 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
5 exit();
6 }
7
8 // Delete options
9 if (defined('STAGS_OPTIONS_NAME')) {
10 delete_option( STAGS_OPTIONS_NAME ); // Options plugin
11 delete_option( STAGS_OPTIONS_NAME . '-version' ); // Version ST
12
13 delete_option( STAGS_OPTIONS_NAME_AUTO ); // Options auto tags
14 }
15 delete_option( 'tmp_auto_tags_st' ); // Autotags Temp
16
17 delete_option( 'stp_options' ); // Old options from Simple Tagging !
18 delete_option( 'widget_stags_cloud' ); // Widget
19
20 // remove permissions from role
21 if ( function_exists( 'get_role' ) ) {
22 $role = get_role( 'administrator' );
23 if ( $role != null ) {
24 $role->remove_cap( 'simple_tags' );
25 $role->remove_cap( 'admin_simple_tags' );
26 }
27
28 $role = get_role( 'editor' );
29 if ( $role != null ) {
30 $role->remove_cap( 'simple_tags' );
31 $role->remove_cap( 'admin_simple_tags' );
32 }
33
34 // Clean var
35 unset( $role );
36 }