Contact form 7 is loading reCaptcha v3 scripts on all the pages of the sites which is making the website slow. So I was using the script below which was working fine before two weeks from now, but now it stopped working and it's now loading even more scripts. Why could it be? I don't want to use extra plugins. function contactform_dequeue_scripts() { $load_scripts = false; if( is_singular() ) { $post = get_post(); if( has_shortcode($post->post_content, 'contact-form-7') ) { $load_scripts = …
Wordpress noob here wondering how to include reCaptcha authentication in my login without a plugin? So far I have added the captcha div into the login using a hook: add_action('login_form','my_added_login_field'); function my_added_login_field(){ ?> <p> <div class="g-recaptcha" data-sitekey="mySiteKey"></div> </p> <?php } The script is enqueued. Now I just need to add an authentication process to verify the captcha before loggin the user in. I know I need to use something like this filter: add_filter( 'authenticate', 'my_custom_authenticate', 10, 3 ); function my_custom_authenticate( …
I tried to create a custom login form and custom register form by ajax. I have been successful to make that and you can see my code below for custom login form. the issue is, I need to use reCaptcha V3 for my forms (login and register) for security. but I do not know how to add and use reCaptcha for my forms. so I need your help. what I have for custom login form by ajax: in Fuctions.php function …
I have a captcha plugin, and to access my admin page I need to select the right captcha image. Since this morning on the login page the captcha part does not appear and when I enter my id and psswd it gives me an error message saying that I used the wrong image. What shall I do ? Thanks for your help, I'm a simple user, not a computer science savvy
After logging in I get an extra layer: The URL is https://quảcầu.cc/wp-login.php?action=postpass This is fine, but now I have a protected post, and after entering password this captcha shows up. After done it the page redirect to a blank page. One needs to re-access the post from the URL bar, then re-enter password again to read it. So far I only have two security plugins: Jetpack and Wordfence. But even when I have deactivated them, this still persists. Do you …
I am using Gravity Forms and have recently started using their Google Captcha integration. (We also use Autoptimize ) The problem I have is that de captcha validation goes wrong, but I am not sure where to look for the solution. My question is: how can I get this to work? (Autoptimize: We already have the "aggregate inline JS" turned off) We also have expiry clauses in our htaccess. ExpiresByType application/javascript "access plus 2 months" ExpiresByType text/javascript "access plus 2 …
I've been using wp_signon for a long time in a project: //Do the actual login for WP User $creds = array(); $creds['user_login'] = $skuser_name; $creds['user_password'] = $skuser_pass; $creds['remember'] = true; $user = wp_signon( $creds, false ); This have been working for a long time. I recently added plugin Wordfence which included recaptcha (invislbe) for login and registration forms and those obviously do work. After installation of that plugin my custom loginforms with code above did not work. After some research …
I'm really trying to implement Google's Captcha V3 on the wp-login page. I've seen this snippet referenced a few times in different places. The thing is, nobody seems to reference how to check the section that says "// FIXME: This one fires if your password is incorrect... Check if password was incorrect before returning this error..." Is it possible to have an ajax check if the user's password is correct? This would be a huge asset to WP development. /** …
I've added the following code to my function file to add the recaptcha, however I do not know how I can validate the captcha. /** * Add Captcha to Comments Form */ add_filter('comment_form', function() { echo '<div class="g-recaptcha" data-sitekey="'.GOOGLE_RECAPTCHA_SITEKEY.'"></div>'; }); Is there a filter for the submission of the comments form? I will be validating the captcha server side using the following: https://github.com/google/recaptcha Any advise on how to implement the captcha to the comments form would be appreciated.
Hi I have a form I've made that works on my local machine but doesn't run the get_file_contents on the live server as it returns NULL on the response? Form: <form name="contactUS" action="<?php echo get_template_directory_uri(); ?>/mail/contact-us-mail-recaptcha.php" method="post"> <input name="name" type="text" placeholder="Name"> <input name="email" type="email" placeholder="Email"> <input name="message" type="textarea" placeholder="Please describe your project and the work to be done?"> <div class="g-recaptcha" data-sitekey="<site key>"></div> <button type="submit" class="nsc-button">Submit</button> </form> Server Code: <?php $recaptcha_secret = '<secret key>'; $ip = $_SERVER['REMOTE_ADDR']; $captchaResponse = $_POST['g-recaptcha-response']; $response …
I am running a wordpress site with contact form 7. I have signed up to reCaptcha and everything is working fine except all the fields on the form are right aligned but the reCaptcha is aligned to the left. Is there anyway to align it to the right like the rest of the fields? Heres a screenshot from my local machine:
I am trying to add a recaptcha to my custom field. I have created a custom form in a page template and this the part of my code I think is relevant (don't worry that API key is MerchantOne's public demo api so it's not personal): // API Setup parameters $gatewayURL = 'https://secure.merchantonegateway.com/api/v2/three-step'; $APIKey = '2F822Rw39fx762MaV7Yy86jXGTC7sCDy'; // If there is no POST data or a token-id, print the initial shopping cart form to get ready for Step One. if (empty($_POST['DO_STEP_1']) …
I've read all the posts at stackoverflow and wordpress stackexchange, and none of the topics on using Google reCaptcha 2 have given me information on how to validate reCaptcha on both custom wordpress registration and login forms. I've successfully added the reCaptcha code to the page, but don't know how to implement validation. Can someone please provide some assistance? This post here at wordpress stackexchange provides no solution other than to use a plugin: Custom ReCaptcha Login I'd prefer to …
I have two number and an operator in three variables. For example $number1, $number2 and $operator. $operator contains only an operator from an array of (+, -, *, /). Now my question is how can I calculate mathematical operation with these three variables? For example $number1 ($operator) $number2 = ?
I did asked a similar question some time ago but i couldn't get a useful answer. I would like to ask again. I actually wanted to add a field called "security" to prevent those autobot to send me spam through the wordpress comment form. And i have a specific answer for this security field. I want my comment form to be submitted oif only the answer is correct or else the comment not submit. You can see the example at …
I want to add Re Captcha to my wordpress site and i'm using google recaptha for it : https://www.google.com/recaptcha/intro/ And the plugin i'm using on wordpress is Better WordPress reCAPTCHA. adding the keys which google recaptcha generates to that plugin is an easy step but how to these 2 steps 1. client side integration 2. server side integration I'm not able to find the html template it is talking about. step 1. Client side integration Paste this snippet before the …
I'm building reCAPATCHA into my WooCommerce checkout. It is a fairly easy process as I'm using woocommerce_checkout_process to validate the capatcha. However, I have running into one issue. When there is a cart error, I want to be able to reset the reCAPATCHA using grecaptcha.reset(); JavaScript function. I'm unsure how to run the JavaScript command upon cart error in WooCommerce. Any tips? Thanks!
I have installed WP plugin for reCaptcha & add it on registration page, everything is OK but it submit the form before reCaptcha is solved. I don't want to mess with WP code and do something stupid,I know i need to add statement like, if reCaptcha is solved then submit, but where to add that statement. Thanks for the help.