bp_add_follow_button( int $leader_id = false, int $follower_id = false, array $button_args = array() )
Output the Follow button.
Description
See also
- bp_add_follow_button(): for information on arguments.
Parameters
- $leader_id
-
(Optional) The user ID of the person we want to follow.
Default value: false
- $follower_id
-
(Optional) The user ID initiating the follow request.
Default value: false
- $button_args
-
(Optional) See BP_Button class for more information.
Default value: array()
Source
File: bp-activity/bp-activity-template.php
function bp_add_follow_button( $leader_id = false, $follower_id = false, $button_args = array() ) { echo bp_get_add_follow_button( $leader_id, $follower_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.