bbp_get_forum_last_topic_author_id

  • apply_filters( 'bbp_get_forum_last_topic_author_id', (int) $author_id, $forum_id )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-template.php :: Trac Source Line: 807
       * @uses bbp_get_forum_last_topic_id() To get the forum's last topic id
       * @uses bbp_get_topic_author_id() To get the topic's author id
       * @uses apply_filters() Calls 'bbp_get_forum_last_topic_author' with the author
       *                        id and forum id
       * @return int Forum's last topic's author id
       */
      function bbp_get_forum_last_topic_author_id( $forum_id = 0 ) {
      	$forum_id  = bbp_get_forum_id( $forum_id );
      	$author_id = bbp_get_topic_author_id( bbp_get_forum_last_topic_id( $forum_id ) );
      	return apply_filters( 'bbp_get_forum_last_topic_author_id', (int) $author_id, $forum_id );
      }
      
      /**
       * Output link to author of last topic of forum
       *
       * @since bbPress (r2625)
       *
       * @param int $forum_id Optional. Forum id
       * @uses bbp_get_forum_last_topic_author_link() To get the forum's last topic's
       *                                               author link
      

Comments are closed.