bbp_get_topic_excerpt

  • apply_filters( 'bbp_get_topic_excerpt', $excerpt, $topic_id, $length )

    Source Reference:

    • Component: bbPress :: bbp-topic
      File: /bbp-includes/bbp-topic-template.php :: Trac Source Line: 614
      			$excerpt = bbp_get_topic_content( $topic_id );
      
      		$excerpt = trim( strip_tags( $excerpt ) );
      
      		if ( !empty( $length ) && strlen( $excerpt ) > $length ) {
      			$excerpt  = substr( $excerpt, 0, $length - 1 );
      			$excerpt .= '…';
      		}
      
      		return apply_filters( 'bbp_get_topic_excerpt', $excerpt, $topic_id, $length );
      	}
      
      /**
       * Output pagination links of a topic within the topic loop
       *
       * @since bbPress (r2966)
       *
       * @param mixed $args See {@link bbp_get_topic_pagination()}
       * @uses bbp_get_topic_pagination() To get the topic pagination links
       */
      

Comments are closed.