HEX
Server: Apache/2.4.59 (Debian)
System: Linux keymana 4.19.0-21-cloud-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64
User: lijunjie (1003)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/doco2/wp-content/plugins/wp-ever-accounting/uninstall.php
<?php
/**
 * EverAccounting Uninstall
 *
 * Uninstalling EverAccounting deletes user roles, tables, and options.
 *
 * @package EverAccounting\Uninstaller
 * @version 1.1.0
 */

defined( 'WP_UNINSTALL_PLUGIN' ) || exit;

//clear events
wp_clear_scheduled_hook( 'eaccounting_twicedaily_scheduled_events' );
wp_clear_scheduled_hook( 'eaccounting_daily_scheduled_events' );
wp_clear_scheduled_hook( 'eaccounting_weekly_scheduled_events' );

/*
 * Only remove ALL product and page data if EACCOUNTING_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.
 */
if ( defined( 'EACCOUNTING_REMOVE_ALL_DATA' ) && true === EACCOUNTING_REMOVE_ALL_DATA ) {
	global $wpdb;

	// Roles.
	\EverAccounting\Install::remove_roles();

	// Tables.
	\EverAccounting\Install::drop_tables();

	// Delete options.
	$wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE 'eaccounting\_%';" );

	// Clear any cached data that has been removed.
	wp_cache_flush();
}