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
Return Return
(bool) Always true
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 ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | bbPress (r6543) |
2.0.0 | Introduced. |