Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuriinalivaiko/dcb58a747ca4664a40b7ebfbde0cbfd9 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/dcb58a747ca4664a40b7ebfbde0cbfd9 to your computer and use it in GitHub Desktop.
Hook um_user_login
<?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