bbp_update_forum_last_topic_id

  • apply_filters( 'bbp_update_forum_last_topic_id', $topic_id, $forum_id )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-functions.php :: Trac Source Line: 429
      	// If child forums have higher id, use that instead
      	if ( !empty( $children ) && ( $children_last_topic > $topic_id ) )
      		$topic_id = $children_last_topic;
      
      	// Update the last public topic ID
      	if ( bbp_is_topic_published( $topic_id ) )
      		update_post_meta( $forum_id, '_bbp_last_topic_id', $topic_id );
      
      	return apply_filters( 'bbp_update_forum_last_topic_id', $topic_id, $forum_id );
      }
      
      /**
       * Update the forum last reply id
       *
       * @since bbPress (r2625)
       *
       * @param int $forum_id Optional. Forum id
       * @param int $reply_id Optional. Reply id
       * @uses bbp_get_forum_id() To get the forum id
      

Comments are closed.