| Server IP : 104.21.25.182 / Your IP : 216.73.217.68 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/nitropack/ |
Upload File : |
<?php
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
die;
}
global $wpdb;
$custom_options = [
'nitropack_minimumLogLevel',
'np_warmup_sitemap'
];
if ( defined( 'MULTISITE' ) && MULTISITE ) {
foreach ( get_sites( [ 'fields' => 'ids' ] ) as $blogId ) {
switch_to_blog( $blogId );
// Delete options with 'nitropack-' prefix and transients
$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'nitropack-%' OR option_name LIKE '_transient%nitropack-%'" );
// Delete custom options
foreach ( $custom_options as $option_name ) {
delete_option( $option_name );
}
restore_current_blog();
}
} else {
// Delete options with 'nitropack-' prefix and transients
$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'nitropack-%' OR option_name LIKE '_transient%nitropack-%'" );
// Delete custom options
foreach ( $custom_options as $option_name ) {
delete_option( $option_name );
}
}
wp_cache_flush();
require_once 'nitropack-sdk/autoload.php';
require_once 'constants.php';
NitroPack\SDK\Filesystem::deleteDir( NITROPACK_DATA_DIR );
NitroPack\SDK\Filesystem::deleteDir( NITROPACK_PLUGIN_DATA_DIR );