bbp_get_forum_last_topic_id

  • apply_filters( 'bbp_get_forum_last_topic_id', (int) $topic_id, $forum_id )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-template.php :: Trac Source Line: 729
      	 * @uses get_post_meta() To get the forum's last topic id
      	 * @uses apply_filters() Calls 'bbp_get_forum_last_topic_id' with the
      	 *                        forum and topic id
      	 * @return int Forum's last topic id
      	 */
      	function bbp_get_forum_last_topic_id( $forum_id = 0 ) {
      		$forum_id = bbp_get_forum_id( $forum_id );
      		$topic_id = get_post_meta( $forum_id, '_bbp_last_topic_id', true );
      
      		return apply_filters( 'bbp_get_forum_last_topic_id', (int) $topic_id, $forum_id );
      	}
      
      /**
       * Output the title of the last topic inside a forum
       *
       * @since bbPress (r2625)
       *
       * @param int $forum_id Optional. Forum id
       * @uses bbp_get_forum_last_topic_title() To get the forum's last topic's title
       */
      

Comments are closed.