Created
November 4, 2022 12:46
-
-
Save yuriinalivaiko/dcb58a747ca4664a40b7ebfbde0cbfd9 to your computer and use it in GitHub Desktop.
Hook um_user_login
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 | |
/** | |
* Hook: um_user_login | |
* | |
* Type: action | |
* | |
* Description: Fires after the Login Form successful submit. | |
* Used in the core for login and redirect after the Login Form validation. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/um-actions-login.php#L303 | |
* @link https://docs.ultimatemember.com/article/1298-umuserlogin | |
* | |
* @package um\core | |
* @see um_submit_form_login() | |
* @see um_user_login() | |
* @since 2.0 | |
* @deprecated since version 3.0 | |
* | |
* @param array $args Form data. | |
*/ | |
function my_user_login( $args ) { | |
// your code here. | |
} | |
add_action( 'um_user_login', 'my_user_login', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment