Here is the solution to make Google Recaptcha Addon Work
-
Here is the solution to make Google Recaptcha Addon Work in the free version of DW Question & Answer plugin
Into the file wp-content/plugins/dwqa-captcha/dwqa-captcha.php add the following code under the line 71 :
public function gl_public_key_display() { global $dwqa_general_settings; $public_key = isset( $dwqa_general_settings['captcha-google-public-key'] ) ? $dwqa_general_settings['captcha-google-public-key'] : ''; echo '<p><input type="text" name="dwqa_options[captcha-google-public-key]" value="'.$public_key.'" class="regular-text"></p>'; } public function gl_private_key_display() { global $dwqa_general_settings; $private_key = isset( $dwqa_general_settings['captcha-google-private-key'] ) ? $dwqa_general_settings['captcha-google-private-key'] : ''; echo '<p><input type="text" name="dwqa_options[captcha-google-private-key]" value="'.$private_key.'" class="regular-text"></p>'; }
Then add the following code under the line 58 :
add_settings_field( 'dwqa_options[captcha-google-public-key]', __( 'Captcha Google public key', 'dwqa' ), array( $this, 'gl_public_key_display' ), 'dwqa-settings', 'dwqa-captcha-settings' ); add_settings_field( 'dwqa_options[captcha-google-private-key]', __( 'Captcha Google private key', 'dwqa' ), array( $this, 'gl_private_key_display' ), 'dwqa-settings', 'dwqa-captcha-settings' );
Now you will be able to insert the Google API Keys into the plugin’s admin panel
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Here is the solution to make Google Recaptcha Addon Work’ is closed to new replies.