bp_add_friend_button( int $potential_friend_id, int|bool $friend_status = false, array $button_args = array() )

Output the Connect button.

Description

See also

Parameters

$potential_friend_id

(Required) See bp_get_add_friend_button().

$friend_status

(Optional) See bp_get_add_friend_button().

Default value: false

$button_args

(Optional) See BP_Button class.

Default value: array()

Source

File: bp-friends/bp-friends-template.php

function bp_add_friend_button( $potential_friend_id = 0, $friend_status = false, $button_args = array() ) {
	echo bp_get_add_friend_button( $potential_friend_id, $friend_status, $button_args );
}

Changelog

Changelog
Version Description
BuddyPress 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.