Created
September 29, 2020 12:52
-
-
Save alanef/f5df3aeeb20b25bff173110205895303 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| add_filter( /** | |
| * | |
| * Filter the decision to send an admin confirmation or not | |
| * | |
| * @param $bool | |
| * | |
| * @return bool overrides any logic if set to true, if set to false then standard rules apply | |
| */ | |
| 'qem_registration_always_confirm_admin', | |
| function ( $bool ) { | |
| // your logic to set $bool to true or false | |
| return $bool; | |
| }, | |
| 10, | |
| 1 | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment