How to retrieve/get the reCaptcha keys registered in the panel
-
For those wondering how to retrieve the reCaptcha keys from the database without doing any SQL query (like I was). I found a way and would like to share it here, because I searched and have nothing here or in any other website related to it.
It’s pretty simple.
To get the public or site key:
WP_reCaptcha::instance()->get_option( 'recaptcha_publickey' )
To get the private key:
WP_reCaptcha::instance()->get_option( 'recaptcha_privatekey' )
Hope it helps someone.
- The topic ‘How to retrieve/get the reCaptcha keys registered in the panel’ is closed to new replies.