bbp_get_reply_excerpt

  • apply_filters( 'bbp_get_reply_excerpt', $excerpt, $reply_id, $length )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 521
      			$excerpt = bbp_get_reply_content( $reply_id );
      
      		$excerpt = trim ( strip_tags( $excerpt ) );
      
      		if ( !empty( $length ) && strlen( $excerpt ) > $length ) {
      			$excerpt  = substr( $excerpt, 0, $length - 1 );
      			$excerpt .= '…';
      		}
      
      		return apply_filters( 'bbp_get_reply_excerpt', $excerpt, $reply_id, $length );
      	}
      
      /**
       * Append revisions to the reply content
       *
       * @since bbPress (r2782)
       *
       * @param string $content Optional. Content to which we need to append the revisions to
       * @param int $reply_id Optional. Reply id
       * @uses bbp_get_reply_revision_log() To get the reply revision log
      

Comments are closed.