bbp_user_favorites_link( mixed $args = array(), int $user_id, bool $wrap = true )

Output the link to make a topic favorite/remove a topic from favorites

Description

Parameters

$args

(mixed) (Optional) See bbp_get_user_favorites_link()

Default value: array()

$user_id

(int) (Optional) User id

$wrap

(bool) (Optional) If you want to wrap the link in <span id="favorite-toggle">.

Default value: true

Source

File: bp-forums/users/template.php

function bbp_user_favorites_link( $args = array(), $user_id = 0, $wrap = true ) {
	echo bbp_get_user_favorites_link( $args, $user_id, $wrap );
}

Changelog

Changelog
Version Description
bbPress (r2652) 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.