Echo comments template part.
The comments template part only loads if comments are active to prevent unnecessary memory usage.
beans_comments_template( )
Return: (void)
Source
function beans_comments_template() {
global $post;
$shortcircuit_conditions = array(
beans_get( 'ID', $post ) && ! ( comments_open() || get_comments_number() ),
! post_type_supports( beans_get( 'post_type', $post ), 'comments' ),
);
if ( in_array( true, $shortcircuit_conditions ) ) {
return;
}
comments_template();
}