GRAYBYTE WORDPRESS FILE MANAGER1302

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/user-registration/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/user-registration//uninstall.php
<?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();
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 13 2025 10:54:02
inteuuod / inteuuod
0755
assets
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
chunks
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
includes
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
languages
--
July 13 2025 14:37:12
inteuuod / inteuuod
0755
modules
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
templates
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
vendor
--
July 10 2025 04:32:25
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:25
inteuuod / inteuuod
0644
CHANGELOG.txt
72.146 KB
June 19 2025 14:56:36
inteuuod / inteuuod
0644
license.txt
35.363 KB
July 06 2017 15:41:14
inteuuod / inteuuod
0644
phpunit.watcher.yml.dist
0.113 KB
March 01 2022 12:25:38
inteuuod / inteuuod
0644
phpunit.xml.dist
0.408 KB
March 01 2022 12:25:38
inteuuod / inteuuod
0644
readme.txt
40.27 KB
June 19 2025 14:56:36
inteuuod / inteuuod
0644
uninstall.php
2.225 KB
April 16 2025 15:38:10
inteuuod / inteuuod
0644
user-registration.php
20.868 KB
June 19 2025 14:56:36
inteuuod / inteuuod
0644
wpml-config.xml
4.041 KB
June 19 2025 14:56:36
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF