beans_comment_callback

wp_list_comments callback function.

This function adds the hooks to which the comment template part is attached to. are attached.

beans_comment_callback( $comment, $args, $depth )

Return: (void)

Source

function beans_comment_callback( $comment, $args, $depth ) {

	global $comment;

	// Add args and depth to comment global.
	$comment->args = $args;
	$comment->depth = $depth;

	// Don't allow overwrite.
	?><li id="comment-<?php (int) comment_ID(); ?>" <?php comment_class( empty( $args['has_children'] ) ? '' : 'parent' ); ?>><?php

		/**
		 * Fires in comment structural HTML.
		 *
		 * @since 1.0.0
		 */
		do_action( 'beans_comment' );

	// Don't close </li> tag.

}