Warning: This function has been deprecated. bbPress (r6543) instead.

bbp_add_user_topic_subscription( int $user_id, int $topic_id )

Add a topic to user’s subscriptions


Description Description

Note that both the User and Topic should be verified to exist before using this function. Originally both were validated, but because this function is frequently used within a loop, those verifications were moved upstream to improve performance on topics with many engaged users.


Parameters Parameters

$user_id

(Optional) User id

$topic_id

(Optional) Topic id


Top ↑

Return Return

(bool) Always true


Top ↑

Source Source

File: includes/users/engagements.php

function bbp_add_user_topic_subscription( $user_id = 0, $topic_id = 0 ) {
	return bbp_add_user_subscription( $user_id, $topic_id );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 bbPress (r6543)
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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