user-switching.php
public function action_personal_options( WP_User $user ) {
		$link = self::maybe_switch_url( $user );

		if ( ! $link ) {
			return;
		}

		?>
		<tr>
			<th scope="row"><?php echo esc_html_x( 'User Switching', 'User Switching title on user profile screen', 'user-switching' ); ?></th>
			<td><a href="<?php echo esc_url( $link ); ?>"><?php esc_html_e( 'Switch&nbsp;To', 'user-switching' ); ?></a></td>
		</tr>
		<?php
	}
public function action_personal_options( WP_User $user ) {
		$link = self::maybe_switch_url( $user );

		if ( ! $link ) {
			return;
		}

		?>
		<tr>
			<th scope="row"><?php echo esc_html_x( 'User Switching', 'User Switching title on user profile screen', 'user-switching' ); ?></th>
			<td><a href="<?php echo esc_url( $link ); ?>"><?php esc_html_e( 'Switch&nbsp;To', 'user-switching' ); ?></a></td>
		</tr>
		<?php
	}
public function action_personal_options ( WP_User $ user ) { $ link = self :: maybe_switch_url ( $ user ) ; if ( ! $ link ) { return ; } ?>
		<tr>
			<th scope="row"><?php echo esc_html_x ( 'User Switching' , 'User Switching title on user profile screen' , 'user-switching' ) ; ?></th>
			<td><a href="<?php echo esc_url ( $ link ) ; ?>"><?php esc_html_e ( 'Switch&nbsp;To' , 'user-switching' ) ; ?></a></td>
		</tr>
		<?php }
Outputs the 'Switch To' link on the user editing screen if the current user has permission to switch to them.

@param WP_User $user User object for this screen.
Outputs the Switch To link on the user editing screen if the current user has permission to switch to them .