bp_add_switch_button( int $user_id, array $button_args = array() )
Output the Switch button.
Description
Parameters
- $user_id
-
(Required) The user ID of the person we want to switch to.
- $button_args
-
(Optional) See BP_Button class for more information.
Default value: array()
Source
File: bp-members/bp-members-template.php
function bp_add_switch_button( $user_id, $button_args = array() ) { echo bp_get_add_switch_button( $user_id, $button_args ); }
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.