Use captcha for visitors only!

Hello,

I want to use this plugin's captcha feature only for visitor. Captcha not making sense for logged in users. Is it possible to do this?

Filter would be helpful.

Thanks.

  • Predrag Dubajic

    Hey @Mustafa,

    Hope you're doing well today :slight_smile:

    This is not currently possible withing plugin options so it would require custom modification to make it work.

    I will flag this thread for our second level support dev guys to have a look at.
    Please note that, developer response might be slower than usual staff response, so we appreciate your patience on this.

    Best regards,
    Predrag

  • Ash

    Hey @Mustafa

    Unfortunately, there is no filter available, I am marking this as a feature request.

    For now, to do so you need to make some edit.

    Please go to /wp-content/plugins/qa/core/core.php:
    Line no 78 and replace

    if ( isset( $this->g_settings["captcha"] ) && $this->g_settings["captcha"] && qa_is_captcha_usable()) {

    with

    if ( isset( $this->g_settings["captcha"] ) && $this->g_settings["captcha"] && qa_is_captcha_usable() && ! is_user_logged_in() ) {

    Please go to /wp-content/plugins/qa/core/edit.php:
    Line 89 replace

    if( $qa_general_settings['captcha'] ) {

    with

    if( $qa_general_settings['captcha'] && ! is_user_logged_in() ) {

    Please go to /wp-content/plugins/qa/core/edit.php:
    Line 136 replace

    if( $qa_general_settings['captcha'] ) {

    with

    if( $qa_general_settings['captcha'] && ! is_user_logged_in() ) {

    Then go to /wp-content/plugins/qa/core/template-tags.php
    Line 286 replace

    if ( isset( $qa_general_settings["captcha"] ) && $qa_general_settings["captcha"] && qa_is_captcha_usable()  ) {

    with

    if ( isset( $qa_general_settings["captcha"] ) && $qa_general_settings["captcha"] && qa_is_captcha_usable() && ! is_user_logged_in() ) {

    Line 641 replace

    if($qa_general_settings['captcha']  ) {

    with

    if($qa_general_settings['captcha'] && ! is_user_logged_in() ) {

    Line 791 replace

    if($qa_general_settings['captcha']  ) {

    with

    if($qa_general_settings['captcha'] && ! is_user_logged_in() ) {

    Please note that, this changes will be lost in next update. So it's worth to note down this changes somewhere and apply again after your updates.

    Hope it helps :slight_smile: Please feel free to ask more question if you have any.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.