';
if (isset($_POST['wpam_google_recaptcha_save_settings'])) {
if(!isset($_REQUEST['_wpnonce']) || !wp_verify_nonce($_REQUEST['_wpnonce'], 'wpam_google_recaptcha_save_settings')){
wp_die(__('Error! Nonce Security Check Failed! Go back to the reCAPTCHA menu and Save Settings again.', 'wpam'));
}
update_option('wpam_google_recaptcha_site_key', sanitize_text_field($_REQUEST['wpam_google_recaptcha_site_key']));
update_option('wpam_google_recaptcha_secret_key', sanitize_text_field($_REQUEST['wpam_google_recaptcha_secret_key']));
echo '
';
echo '
Google reCAPTCHA Settings Saved!
';
echo '
';
}
?>
Read the usage documentation to learn how to use the Google reCAPTCHA addon