BBP_Walker_Reply::start_el( $output, $object, $depth, $args = array(), $current_object_id )
Description
See also
Source
File: bp-forums/common/classes.php
public function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) { // Set up reply $depth++; bbpress()->reply_query->reply_depth = $depth; bbpress()->reply_query->post = $object; bbpress()->current_reply_id = $object->ID; // Check for a callback and use it if specified if ( !empty( $args['callback'] ) ) { call_user_func( $args['callback'], $object, $args, $depth ); return; } // Style for div or list element if ( !empty( $args['style'] ) && ( 'div' === $args['style'] ) ) { echo "<div class='depth-$depth' data-depth='$depth'>\n"; } else { echo "<li class='depth-$depth' data-depth='$depth'>\n"; } bbp_get_template_part( 'loop', 'single-reply' ); }
Changelog
Version | Description |
---|---|
bbPress (r4944) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.