Google invisible captcha on a php website with <input type="submit">
<p>I am currently using the normal noCaptcha reCaptcha from Google with the WordPress plugin "Password protected" and it works fine. Still a few visitors are confused that they have to click on "I am no robot". My sitekey has been withlisted by Google for their new invisible reCaptcha. </p>

<p>I added the necessary parameters to the submit button:</p>

<p><code>&lt;input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large g-recaptcha" data-sitekey="mySiteKey" data-callback="" data-badge="inline" value="&lt;?php esc_attr_e( 'Log In', 'password-protected' ); ?&gt;" tabindex="100" /&gt;</code></p>

<p>And the response is verified by this:</p>

<p><code>if ( ( $this-&gt;encrypt_password( $password_protected_pwd ) == $pwd &amp;&amp; $pwd != '' &amp;&amp; isset($_POST['g-recaptcha-response']) &amp;&amp; $_POST['g-recaptcha-response']  ) || apply_filters( 'password_protected_process_login', false, $password_protected_pwd ) ) {</code></p>

<p>The captcha itself is shown, but after solving the captcha correct nothing happens anymore. It's like I never had submitted the button or the callback function in recaptcha is not answering properly.</p>

<p>So, what am I doing wrong? Or what do I have to change in the code?</p>