Created
November 5, 2022 19:18
-
-
Save yuriinalivaiko/2ed9fc888c5d7815553205d2058f582d to your computer and use it in GitHub Desktop.
Hook um_registration_for_loggedin_users
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 | |
| /** | |
| * Hook: um_registration_for_loggedin_users | |
| * | |
| * Type: filter | |
| * | |
| * Description: Allows to display the registration form for logged in users if TRUE. Default value is FALSE. | |
| * | |
| * @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-shortcodes.php#L686 | |
| * | |
| * @package um\core | |
| * @see um\core\Shortcodes::load() | |
| * @since 2.0 | |
| * @version 3.0 | |
| * | |
| * @param bool $enable_loggedin_registration Enable registration for logged in. | |
| * | |
| * @return bool Enable registration for logged in. | |
| */ | |
| function my_registration_for_loggedin_users( $enable_loggedin_registration ) { | |
| // your code here. | |
| return $enable_loggedin_registration; | |
| } | |
| add_filter( 'um_registration_for_loggedin_users', 'my_registration_for_loggedin_users', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment