HEX
Server: LiteSpeed
System: Linux venus 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: axxoncom (1007)
PHP: 8.3.19
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/axxoncom/domains/pulse.com.pk/private_html/wp-content/plugins/t4b-news-ticker/uninstall.php
<?php
// if uninstall.php is not called by WordPress, exit
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
    exit;
}

// Load WordPress database access
global $wpdb;

// Retrieve user preference for data deletion.
$t4bnt_general = get_option( 't4bnt_general', array() ); // Ensure it's an array
$t4bnt_delall  = isset( $t4bnt_general['t4bnt_delall'] ) ? sanitize_text_field( $t4bnt_general['t4bnt_delall'] ) : 'off';

// If the user has chosen to delete all plugin data, proceed.
if ( 'on' === $t4bnt_delall ) {
    // List of plugin options to be deleted.
    $option_names = array(
        't4bnt_review_nt',
        't4bnt_activation_time',
        't4bnt_plugin_version',
        't4bnt_general',
        't4bnt_content',
        't4bnt_advance',
    );

    // Delete plugin options from the database.
    foreach ( $option_names as $option ) {
        delete_option( $option );
        delete_site_option( $option ); // Ensures deletion in a multisite setup.
    }
}