BP_Core_Members_Switching::action_personal_options( WP_User $user )
Outputs the ‘View As’ link on the user editing screen if the current user has permission to switch to them.
Description
Parameters
- $user
-
(Required) User object for this screen.
Source
File: bp-members/classes/class-bp-core-members-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__( 'Member Switching', 'buddyboss' ); ?></th> <td><a href="<?php echo esc_url( $link ); ?>"><?php esc_html_e( 'Switch To', 'buddyboss' ); ?></a> </td> </tr> <?php }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.