File "uninstall.php"

Full Path: /home/refref/public_html/code/wordfence/plugins/string-locator/uninstall.php
File size: 317 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
//if uninstall not called from WordPress exit
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit();
}

global $wpdb;
$options = $wpdb->get_results( "SELECT option_name FROM {$wpdb->options} WHERE option_name LIKE '%string-locator%'" );
foreach ( $options as $option ) {
	delete_option( $option->option_name );
}