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

(string) (Required) See {@bp_get_members_component_link()}.

$action

(string) (Optional) See {@bp_get_members_component_link()}.

Default value: ''

$query_args

(string) (Optional) See {@bp_get_members_component_link()}.

Default value: ''

$nonce

(string|bool) (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.