16 lines
413 B
PHP
16 lines
413 B
PHP
<?php
|
|
/**
|
|
* @package Polylang Updater
|
|
*/
|
|
|
|
// If uninstall not called from WordPress exit.
|
|
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
|
exit;
|
|
}
|
|
|
|
// Deletes cache options generated by `EDD_SL_Plugin_Updater`.
|
|
global $wpdb;
|
|
|
|
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
|
|
$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'edd\_sl\_%'" );
|