[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
inc
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 Blocks
SET
[ DEL ]
📁 Contracts
SET
[ DEL ]
📁 Database
SET
[ DEL ]
📁 Integrations
SET
[ DEL ]
📁 Libraries
SET
[ DEL ]
📁 Models
SET
[ DEL ]
📁 Seeds
SET
[ DEL ]
📁 Services
SET
[ DEL ]
📁 Support
SET
[ DEL ]
📁 config
SET
[ DEL ]
📁 lib
SET
[ DEL ]
📄 Activator.php
511 B
SET
[ EDIT ]
|
[ DEL ]
📄 Attachment.php
7,513 B
SET
[ EDIT ]
|
[ DEL ]
📄 Controller.php
850 B
SET
[ EDIT ]
|
[ DEL ]
📄 Core.php
1,179 B
SET
[ EDIT ]
|
[ DEL ]
📄 Deactivator.php
3,065 B
SET
[ EDIT ]
|
[ DEL ]
📄 Factory.php
2,960 B
SET
[ EDIT ]
|
[ DEL ]
📄 Files.php
6,912 B
SET
[ EDIT ]
|
[ DEL ]
📄 Playlist.php
1,935 B
SET
[ EDIT ]
|
[ DEL ]
📄 Plugin.php
2,415 B
SET
[ EDIT ]
|
[ DEL ]
📄 Requirements.php
2,030 B
SET
[ EDIT ]
|
[ DEL ]
📄 support.php
155 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Deactivator.php
<?php /** * Plugin deactivation and uninstall handler. * * @package PrestoPlayer */ namespace PrestoPlayer; use PrestoPlayer\Database\Table; use PrestoPlayer\Database\Visits; use PrestoPlayer\Database\Presets; use PrestoPlayer\Database\Videos; use PrestoPlayer\Database\AudioPresets; use PrestoPlayer\Database\Webhooks; use PrestoPlayer\Models\ReusableVideo; use PrestoPlayer\Services\Usage; /** * Class Deactivator * * Handles plugin data cleanup on uninstall. */ class Deactivator { /** * Handle plugin uninstall based on user settings. * * @return void */ public static function uninstall() { // Get plugin settings. $uninstall_settings = get_option( 'presto_player_uninstall' ); // Uninstall all data on delete if selected. if ( isset( $uninstall_settings['uninstall_data'] ) && $uninstall_settings['uninstall_data'] ) { self::delete_data_on_uninstall(); } } /** * Delete all plugin data from the database. * * @return void */ public static function delete_data_on_uninstall() { // License. delete_option( 'presto_player_license' ); delete_option( 'presto_player_license_data' ); // Settings. delete_option( 'presto_player_analytics' ); delete_option( 'presto_player_google_analytics' ); delete_option( 'presto_player_branding' ); delete_option( 'presto_player_bunny_keys' ); delete_option( 'presto_player_bunny_storage_zones' ); delete_option( 'presto_player_bunny_pull_zones' ); delete_option( 'presto_player_bunny_uid' ); delete_option( 'presto_player_instant_video_width' ); delete_option( 'presto_player_media_hub_sync_default' ); // Notices. delete_option( 'presto_player_dismissed_notice_nginx_rules' ); delete_option( 'presto_player_presto_player_bunny_uid' ); delete_option( 'presto_player_dismissed_notice_presto_player_reusable_notice' ); // Uninstall option. delete_option( 'presto_player_uninstall' ); // Tables. delete_option( 'presto_preset_seed_version' ); delete_option( 'presto_player_visits_database_version' ); delete_option( 'presto_player_videos_database_version' ); delete_option( 'presto_player_presets_database_version' ); delete_option( 'presto_zone_token' ); delete_option( 'presto_player_visits_upgrade_version' ); delete_option( 'presto_player_pro_update_performance' ); delete_option( 'presto_player_audio_presets_database_version' ); delete_option( 'presto_player_email_collection_database_version' ); delete_option( 'presto_audio_preset_seed_version' ); // Delete our tables. $table = new Table(); ( new Visits( $table ) )->uninstall(); ( new Presets( $table ) )->uninstall(); ( new AudioPresets( $table ) )->uninstall(); ( new Videos( $table ) )->uninstall(); ( new Webhooks( $table ) )->uninstall(); // Daily views KPI tracking. delete_transient( Usage::DAILY_VIEWS_OPTION ); // Delete all reusable videos. $videos = new ReusableVideo(); $all_videos = $videos->all( array( 'fields' => 'ids' ) ); foreach ( $all_videos as $video_id ) { wp_delete_post( $video_id, true ); } } }