bbp_get_reply_revisions

  • apply_filters( 'bbp_get_reply_revisions', $revisions, $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 652
       * @uses wp_get_post_revisions() To get the reply revisions
       * @uses apply_filters() Calls 'bbp_get_reply_revisions'
       *                        with the revisions and reply id
       * @return string reply revisions
       */
      function bbp_get_reply_revisions( $reply_id = 0 ) {
      	$reply_id  = bbp_get_reply_id( $reply_id );
      	$revisions = wp_get_post_revisions( $reply_id, array( 'order' => 'ASC' ) );
      
      	return apply_filters( 'bbp_get_reply_revisions', $revisions, $reply_id );
      }
      
      /**
       * Return the revision count of the reply
       *
       * @since bbPress (r2782)
       *
       * @param int $reply_id Optional. Reply id
       * @uses bbp_get_reply_revisions() To get the reply revisions
       * @uses apply_filters() Calls 'bbp_get_reply_revision_count'
      
  • apply_filters( 'bbp_get_reply_revisions', count( bbp_get_reply_revisions( $reply_id ) ), $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 667
       * @since bbPress (r2782)
       *
       * @param int $reply_id Optional. Reply id
       * @uses bbp_get_reply_revisions() To get the reply revisions
       * @uses apply_filters() Calls 'bbp_get_reply_revision_count'
       *                        with the revision count and reply id
       * @return string reply revision count
       */
      function bbp_get_reply_revision_count( $reply_id = 0 ) {
      	return apply_filters( 'bbp_get_reply_revisions', count( bbp_get_reply_revisions( $reply_id ) ), $reply_id );
      }
      
      /**
       * Output the status of the reply
       *
       * @since bbPress (r2667)
       *
       * @param int $reply_id Optional. Reply id
       * @uses bbp_get_reply_status() To get the reply status
       */
      

Comments are closed.