File: uninstall.php

Recommend this page to a friend!
  Classes of Malik Naik  >  WordPress Recaptcha Integration  >  uninstall.php  >  Download  
File: uninstall.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: WordPress Recaptcha Integration
Plugin to integrate Recaptcha to protect forms
Author: By
Last change:
Date: 2 months ago
Size: 617 bytes
 

Contents

Class file image Download
<?php

// Block direct access.
if (!defined('WP_UNINSTALL_PLUGIN') || !WP_UNINSTALL_PLUGIN) {
    echo
'Direct access not allowed';
   
status_header(404);
    exit;
}

// reCAPTCHA Lite plugin options list.
$plugin_options = [
   
'site_key',
   
'secret_key',
   
'theme',
   
'recaptcha_version',
   
'login_form',
   
'register_form',
   
'lostpassword_form',
   
'resetpass_form',
   
'comment_form_after_fields',
   
'bp_after_signup_profile_fields',
   
'woocommerce_forms',
];

// Delete all the saved options.
foreach ($plugin_options as $option_name) {
   
delete_option(sprintf("grl_%s", $option_name));
}


For more information send a message to info at phpclasses dot org.