get_switch_to_url() public method

Gets the URL to switch to the user if the User Switching plugin is active
Since: 2.1
public get_switch_to_url ( )
/**
 * Wrapper for RCP_Member->get_switch_to_url()
 *
 * @access public
 * @since 2.1
 */
function rcp_get_switch_to_url( $user_id = 0 ) {

	if( empty( $user_id ) ) {
		return;
	}

	$member = new RCP_Member( $user_id );
	return $member->get_switch_to_url();

}