bbp_is_user_favorite
bbp_is_user_favorite
Appears in: bbpress.2.5.14, bbpress.2.6.0, bbpress.2.6.1, bbpress.2.6.11, bbpress.2.6.2, bbpress.2.6.3, bbpress.2.6.4, bbpress.2.6.5, bbpress.2.6.6, bbpress.2.6.9
Hook Type: filter
Displaying hooks found in version: bbpress.2.6.9apply_filters('bbp_is_user_favorite') is found 1 times:
- /includes/users/engagements.php line 495
function bbp_is_user_favorite( $user_id = 0, $topic_id = 0 ) { $retval = bbp_is_object_of_user( $topic_id, $user_id, '_bbp_favorite' ); // Filter & return return (bool) apply_filters( 'bbp_is_user_favorite', $retval, $user_id, $topic_id ); } /** * Add a topic to user's favorites * * Note that both the User and Topic should be verified to exist before using