I don’t want to request ReCaptcha for logged in users

5.47K viewsGeneral
1

Download master.zip from github and you can use this filter:

add_filter('ap_show_captcha', 'my_ap_captch_filter', 10, 2);
function my_ap_captch_filter($true, $user_id){
    if ($user_id == get_current_user_id())
    	return false;
    return $true;
}
commented on answer

Not familiar with using github. Not seeing a download when searching master.zip. Is there a link? Would this upload as is as a plugin where I then add your code to what lines?

Hello, still waiting. Not seeing.

Googled Anspress site:github.com

You meant download anspress plugin from github. However the latest version still requests it for logged in users.
https://github.com/anspress/anspress

Which file to put this filter in?

@Stacy I think functions.php in your theme’s folder. (wp-content/themes/your_active_theme/functions.php)

My theme or the plugin ?

You are viewing 1 out of 2 answers, click here to view all answers.