PluginProbe
Link Library / trunk
Link Library vtrunk
7.9.7 7.9.6 7.9.5 7.9.4 7.9.3 7.9.2 7.9.1 6.0-Beta11 6.0-Beta12 6.0-Beta2 6.0-Beta3 6.0-Beta4 6.0-Beta5 6.0-Beta6 6.0-Beta7 6.0-Beta8 6.0-Beta9 6.6.8 7.1.4 7.1.5 7.1.6 7.1.7 7.1.8 7.1.9 7.2.0 All 135 releases
link-library / uninstall.php

uninstall.php in Link Library trunk, at uninstall.php

22 lines 655 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Check that code was called from WordPress with
3 // uninstallation constant declared
4 if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
5 exit;
6
7 // Check if options exist and delete them if present
8 if ( get_option( 'LinkLibraryGeneral' ) != false ) {
9
10 $genoptions = get_option( 'LinkLibraryGeneral' );
11
12 for ($i = 1; $i <= $genoptions['numberstylesets']; $i++) {
13 $settingsname = 'LinkLibraryPP' . $i;
14
15 delete_option( $settingsname );
16 }
17
18 delete_option( 'LinkLibraryGeneral' );
19 }
20
21 wp_clear_scheduled_hook( 'link_library_import_links' );
22 wp_clear_scheduled_hook( 'link_library_gen_thumbs' );