Created
September 29, 2020 12:48
-
-
Save alanef/b9a418b3c3e33664f0d61317c38a8749 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 a 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', | |
| 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