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
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | 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.