bbp_is_user_subscribed( int $user_id, int $object_id, $type = 'post' )
Check if an object (forum or topic) is in user’s subscription list or not
Description Description
Parameters Parameters
- $user_id
-
(Optional) User id
- $object_id
-
(Optional) Object id
Return Return
(bool) True if the object (forum or topic) is in user's subscriptions, otherwise false
Source Source
File: includes/users/engagements.php
function bbp_is_user_subscribed( $user_id = 0, $object_id = 0, $type = 'post' ) { $retval = bbp_is_object_of_user( $object_id, $user_id, '_bbp_subscription', $type ); // Filter & return return (bool) apply_filters( 'bbp_is_user_subscribed', $retval, $user_id, $object_id, $type ); }
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |