bp_members_component_link( string $component, string $action = '', string $query_args = '', string|bool $nonce = false )

Output a link to a members component subpage.

Description

See also

Parameters

$component

(Required) See {@bp_get_members_component_link()}.

$action

(Optional) See {@bp_get_members_component_link()}.

Default value: ''

$query_args

(Optional) See {@bp_get_members_component_link()}.

Default value: ''

$nonce

(Optional) See {@bp_get_members_component_link()}.

Default value: false

Source

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

function bp_members_component_link( $component, $action = '', $query_args = '', $nonce = false ) {
	echo esc_url( bp_get_members_component_link( $component, $action, $query_args, $nonce ) );
}

Changelog

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