11 lines
317 B
PHP
11 lines
317 B
PHP
<?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 );
|
|
}
|