user-switching.php
public function filter_user_row_actions( array $actions, WP_User $user ) {
		$link = self::maybe_switch_url( $user );

		if ( ! $link ) {
			return $actions;
		}

		$actions['switch_to_user'] = '<a href="' . esc_url( $link ) . '">' . esc_html__( 'Switch&nbsp;To', 'user-switching' ) . '</a>';

		return $actions;
	}
public function filter_user_row_actions( array $actions, WP_User $user ) {
		$link = self::maybe_switch_url( $user );

		if ( ! $link ) {
			return $actions;
		}

		$actions['switch_to_user'] = '<a href="' . esc_url( $link ) . '">' . esc_html__( 'Switch&nbsp;To', 'user-switching' ) . '</a>';

		return $actions;
	}
public function filter_user_row_actions ( array $ actions , WP_User $ user ) { $ link = self :: maybe_switch_url ( $ user ) ; if ( ! $ link ) { return $ actions ; } $ actions [ 'switch_to_user' ] = '<a href="' . esc_url ( $ link ) . '">' . esc_html__ ( 'Switch&nbsp;To' , 'user-switching' ) . '</a>' ; return $ actions ; }
Adds a 'Switch To' link to each list of user actions on the Users screen.

@param string[] $actions The actions to display for this user row.
@param WP_User  $user    The user object displayed in this row.
@return string[] The actions to display for this user row.
Adds a Switch To link to each list of user actions on the Users screen .