Skip to content

Instantly share code, notes, and snippets.

@rahularyan
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahularyan/c41295f83ea48a0cce48 to your computer and use it in GitHub Desktop.
Save rahularyan/c41295f83ea48a0cce48 to your computer and use it in GitHub Desktop.
// Short version: you can simply use below line
add_filter('ap_user_profile_active', '__return_false');
//Long version: if you dont understand what above code is for then this code will will tell you
function my_disable_anspres_profile(){
return false;
}
add_filter('ap_user_profile_active', 'my_disable_anspres_profile');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment