Load comments fragments.
The comments fragments only loads if comments are active to prevent unnecessary memory usage.
beans_load_comments_fragment( string $template )
Return: (string) The template filename.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
$template | string | true | - | The template filename. |
Source
function beans_load_comments_fragment( $template ) {
if ( empty( $template ) ) {
return;
}
beans_load_fragment_file( 'comments' );
return $template;
}