um_auth_username_password_before

The Ultimate Member um auth username password before function.

Description

um_auth_username_password_before( $user, (string) $username, $password ); 

Parameters (3)

0. $user
The user.
1. $username (string)
The username.
2. $password
The password.

Usage

  1. if ( !function_exists( 'um_auth_username_password_before' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ultimate-member/core/um-actions-login.php'; 
  3.  
  4. // The user. 
  5. $user = null; 
  6.  
  7. // The username. 
  8. $username = ''; 
  9.  
  10. // The password. 
  11. $password = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = um_auth_username_password_before($user, $username, $password); 
  15.  

Defined (1)

The function is defined in the following location(s).

/core/um-actions-login.php  
  1. function um_auth_username_password_before( $user, $username, $password ) { 
  2. remove_filter( 'authenticate', 'wp_authenticate_username_password', 20, 3 );