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>
23 lines
459 B
PHP
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 );
|
|
}
|
|
}*/
|