bbp_get_user_subscribed_topic_ids

  • apply_filters( 'bbp_get_user_subscribed_topic_ids', $subscriptions, $user_id )

    Source Reference:

    • Component: bbPress :: bbp-user
      File: /bbp-includes/bbp-user-functions.php :: Trac Source Line: 528
      	 */
      	function bbp_get_user_subscribed_topic_ids( $user_id = 0 ) {
      		if ( !$user_id = bbp_get_user_id( $user_id ) )
      			return false;
      
      		$subscriptions = (string) get_user_meta( $user_id, '_bbp_subscriptions', true );
      		$subscriptions = (array) explode( ',', $subscriptions );
      		$subscriptions = array_filter( $subscriptions );
      
      		return apply_filters( 'bbp_get_user_subscribed_topic_ids', $subscriptions, $user_id );
      	}
      
      /**
       * Check if a topic is in user's subscription list or not
       *
       * @since bbPress (r2668)
       *
       * @param int $user_id Optional. User id
       * @param int $topic_id Optional. Topic id
       * @uses bbp_get_user_id() To get the user id
      

Comments are closed.