Files
dostavka_vodi/wp-content/plugins/robin-image-optimizer/libs/addons/uninstall.php
Anton.AE 3e42863ef5 Task_12281 (#1)
Co-authored-by: User A0264400 <a0264400@jarl.from.sh>
Reviewed-on: #1
Co-authored-by: Anton.AE <ab.an.ev@yandex.ru>
Co-committed-by: Anton.AE <ab.an.ev@yandex.ru>
2026-07-05 16:07:04 +03:00

23 lines
459 B
PHP

<?php
// if uninstall.php is not called by WordPress, die
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
die;
}
// remove plugin options
global $wpdb;
// Main plugin file, to have files included file deleting WebP folder
/*
require_once( dirname( __FILE__ ) . '/robin-image-optimizer.php' );
if ( class_exists( 'WRIO_WebP_Api' ) ) {
// Unlink WebP dir
$path = WRIO_WebP_Api::get_base_dir_path();
if ( file_exists( $path ) ) {
@unlink( $path );
}
}*/