Created
September 24, 2020 12:05
-
-
Save plugin-republic/4c28537fcbea7ab5f0608ef0300ce1f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Filter user approval - for example, allow certain emails to bypas approval | |
*/ | |
function prefix_user_needs_approval( $needs_approval, $user ) { | |
// Do your checks here | |
return $needs_approval; | |
} | |
apply_filters( 'wcmo_user_needs_approval', 'prefix_user_needs_approval', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment