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.2

do_action('invite_user') is found 1 times:

  • /wp-admin/user-new.php line 113
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    * @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: