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

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


Description Description


Parameters Parameters

$args

(Optional) See bbp_get_user_favorites_link()

Default value: array()

$user_id

(Optional) User id

$wrap

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

Default value: true


Top ↑

Source Source

File: includes/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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 bbPress (r6308) Add 'redirect_to' support
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.