Skip to content

Instantly share code, notes, and snippets.

@cartpauj
Created February 9, 2021 16:30
Show Gist options
  • Save cartpauj/5b44765b034f3e6c1ceb883126456f13 to your computer and use it in GitHub Desktop.
Save cartpauj/5b44765b034f3e6c1ceb883126456f13 to your computer and use it in GitHub Desktop.
Disable Math Captcha on Login Page - MemberPress
<?php
// Disables math captcha on login page
function kill_math_on_login() {
remove_all_actions('mepr-forgot-password-form');
remove_all_actions('mepr-login-form-before-submit');
remove_all_filters('mepr-validate-forgot-password');
remove_all_filters('mepr-validate-login');
}
add_action('plugins_loaded', 'kill_math_on_login');
@slowday
Copy link

slowday commented Nov 27, 2021

@cartpauj Hi Paul, I really like the work you do. Are you open to developer work? We're looking for some help with getting Google to index the protected content in addition to the non-protected content. The default settings aren't working and support says we need a dev. Anyway, if you're interested, you can message me (I'm new to GH so I'm not sure if that's possible) or you can message me through Twitter (my username is in my profile).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment