Helix_Website/wp-content/plugins/simple-google-recaptcha/uninstall.php

30 lines
578 B
PHP

<?php
if (!defined('WP_UNINSTALL_PLUGIN')) {
die('Direct access not allowed');
}
/**
* Class SimpleGoogleRecaptchaUninstall
*/
class SimpleGoogleRecaptchaUninstall
{
/**
* SimpleGoogleRecaptchaUninstall constructor.
*/
public function __construct()
{
$this->sgr_delete(['site_key', 'secret_key', 'login_disable', 'version', 'badge_hide']);
}
private function sgr_delete($array)
{
foreach ($array as $item) {
delete_option(sprintf('sgr_%s', $item));
}
}
}
new SimpleGoogleRecaptchaUninstall();