HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/intranet.kauko.lt/wp-content/plugins/videographywp/uninstall.php
<?php
if( !defined('ABSPATH') || !defined('WP_UNINSTALL_PLUGIN') ){
	die();
}

$options = get_option( 'cvwp_plugin_options' );
if( isset( $options['settings']['complete_uninstall'] ) && $options['settings']['complete_uninstall'] ){
	// 1. delete plugin option
	delete_option('cvwp_plugin_options');
	
	// 2. Remove Video Options from posts
	global $wpdb;
	$query = "DELETE FROM {$wpdb->postmeta} WHERE meta_key = '_cvwp_video_settings'";
	$wpdb->query( $query );
}