bbp_user_subscribe_link( mixed $args = '', int $user_id, bool $wrap = true )

Output the link to subscribe/unsubscribe from a topic

Description

Parameters

$args

(mixed) (Optional) See bbp_get_user_subscribe_link()

Default value: ''

$user_id

(int) (Optional) User id

$wrap

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

Default value: true

Source

File: bp-forums/users/template.php

function bbp_user_subscribe_link( $args = '', $user_id = 0, $wrap = true ) {
	echo bbp_get_user_subscribe_link( $args, $user_id, $wrap );
}

Changelog

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