bbp_get_topic_revisions

  • apply_filters( 'bbp_get_topic_revisions', $revisions, $topic_id )

    Source Reference:

    • Component: bbPress :: bbp-topic
      File: /bbp-includes/bbp-topic-template.php :: Trac Source Line: 831
       * @uses wp_get_post_revisions() To get the topic revisions
       * @uses apply_filters() Calls 'bbp_get_topic_revisions'
       *                        with the revisions and topic id
       * @return string Topic revisions
       */
      function bbp_get_topic_revisions( $topic_id = 0 ) {
      	$topic_id  = bbp_get_topic_id( $topic_id );
      	$revisions = wp_get_post_revisions( $topic_id, array( 'order' => 'ASC' ) );
      
      	return apply_filters( 'bbp_get_topic_revisions', $revisions, $topic_id );
      }
      
      /**
       * Return the revision count of the topic
       *
       * @since bbPress (r2782)
       *
       * @param int $topic_id Optional. Topic id
       * @uses bbp_get_topic_revisions() To get the topic revisions
       * @uses apply_filters() Calls 'bbp_get_topic_revision_count'
      
  • apply_filters( 'bbp_get_topic_revisions', count( bbp_get_topic_revisions( $topic_id ) ), $topic_id )

    Source Reference:

    • Component: bbPress :: bbp-topic
      File: /bbp-includes/bbp-topic-template.php :: Trac Source Line: 846
       * @since bbPress (r2782)
       *
       * @param int $topic_id Optional. Topic id
       * @uses bbp_get_topic_revisions() To get the topic revisions
       * @uses apply_filters() Calls 'bbp_get_topic_revision_count'
       *                        with the revision count and topic id
       * @return string Topic revision count
       */
      function bbp_get_topic_revision_count( $topic_id = 0 ) {
      	return apply_filters( 'bbp_get_topic_revisions', count( bbp_get_topic_revisions( $topic_id ) ), $topic_id );
      }
      
      /**
       * Output the status of the topic
       *
       * @since bbPress (r2667)
       *
       * @param int $topic_id Optional. Topic id
       * @uses bbp_get_topic_status() To get the topic status
       */
      

Comments are closed.