at path:
ROOT
/
wp-content
/
plugins
/
wp-pagenavi
/
uninstall.php
run:
R
W
Run
scb
DIR
2025-07-22 10:22:13
R
W
Run
admin.php
4.9 KB
2016-06-28 05:53:06
R
W
Run
Delete
Rename
core.php
10.59 KB
2021-05-25 06:31:48
R
W
Run
Delete
Rename
pagenavi-css.css
374 By
2010-04-11 17:31:54
R
W
Run
Delete
Rename
readme.txt
7.27 KB
2024-12-19 06:01:56
R
W
Run
Delete
Rename
test.php
452 By
2012-08-24 18:28:58
R
W
Run
Delete
Rename
uninstall.php
909 By
2016-12-08 08:34:46
R
W
Run
Delete
Rename
wp-pagenavi.php
1.26 KB
2024-12-19 06:01:04
R
W
Run
Delete
Rename
error_log
up
📄
uninstall.php
Save
<?php /* * Uninstall plugin */ if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) exit (); $option_names = array( 'pagenavi_options' ); if ( is_multisite() ) { $ms_sites = function_exists( 'get_sites' ) ? get_sites() : wp_get_sites(); if( 0 < sizeof( $ms_sites ) ) { foreach ( $ms_sites as $ms_site ) { $blog_id = isset( $ms_site['blog_id'] ) ? $ms_site['blog_id'] : $ms_site->blog_id; switch_to_blog( $blog_id ); if( sizeof( $option_names ) > 0 ) { foreach( $option_names as $option_name ) { delete_option( $option_name ); plugin_uninstalled(); } } } } restore_current_blog(); } else { if( sizeof( $option_names ) > 0 ) { foreach( $option_names as $option_name ) { delete_option( $option_name ); plugin_uninstalled(); } } } /** * Delete plugin table when uninstalled * * @access public * @return void */ function plugin_uninstalled() { global $wpdb; }