invite_user

invite_user

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('invite_user') is found 1 times:

  • /wp-admin/user-new.php line 113
    			 * @param int    $user_id     The invited user's ID.
    			 * @param array  $role        Array containing role information for the invited user.
    			 * @param string $newuser_key The key of the invitation.
    			 */
    			do_action( 'invite_user', $user_id, $role, $newuser_key );
    
    			$switched_locale = switch_to_user_locale( $user_id );
    
    			if ( '' !== get_option( 'blogname' ) ) {
    				$site_title = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    			} else {
    

See this hook used in plugins: