bp_core_help_bp_docs_link( $attr )

Dynamically add the URL

Description

Parameters

$attr

(Required)

Return

(mixed)

Source

File: bp-core/bp-core-help.php

function bp_core_help_bp_docs_link( $attr ) {
	$slug    = isset( $attr['slug'] ) ? bp_core_dynamically_add_number_in_path( $attr['slug'] ) : '';
	$text    = isset( $attr['text'] ) ? $attr['text'] : '';
	$anchors = isset( $attr['anchors'] ) ? '#' . $attr['anchors'] : '';
	$url     = bp_get_admin_url( add_query_arg( array(
		'page'    => 'bp-help',
		'article' => $slug . $anchors
	), 'admin.php' ) );

	$return = apply_filters( 'bp_core_help_bp_docs_link', $url, $attr );

	if ( ! empty( $text ) ) {
		//$return = sprintf( '<a href="%s">%s</a>', $url, $text );
		$return = sprintf( '<a href="%s">%s</a>', $return, $text );
	}

	return $return;

Changelog

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.