bbp_get_forum_last_topic_title

  • apply_filters( 'bbp_get_forum_last_topic_title', bbp_get_topic_title( bbp_get_forum_last_topic_id( $forum_id ) ), $forum_id )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-template.php :: Trac Source Line: 758
      	 * @uses bbp_get_forum_id() To get the forum id
      	 * @uses bbp_get_forum_last_topic_id() To get the forum's last topic id
      	 * @uses bbp_get_topic_title() To get the topic's title
      	 * @uses apply_filters() Calls 'bbp_get_forum_last_topic_title' with the
      	 *                        topic title and forum id
      	 * @return string Forum's last topic's title
      	 */
      	function bbp_get_forum_last_topic_title( $forum_id = 0 ) {
      		$forum_id = bbp_get_forum_id( $forum_id );
      		return apply_filters( 'bbp_get_forum_last_topic_title', bbp_get_topic_title( bbp_get_forum_last_topic_id( $forum_id ) ), $forum_id );
      	}
      
      /**
       * Output the link to the last topic in a forum
       *
       * @since bbPress (r2464)
       *
       * @param int $forum_id Optional. Forum id
       * @uses bbp_get_forum_last_topic_permalink() To get the forum's last topic's
       *                                             permanent link
      

Comments are closed.