beans_load_comments_fragment

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

NameTypeRequiredDefaultDescription
$templatestringtrue-The template filename.

Source

function beans_load_comments_fragment( $template ) {

	if ( empty( $template ) ) {
		return;
	}

	beans_load_fragment_file( 'comments' );

	return $template;

}