2020-05-01 / 6846阅 / 悠然
Loads the comment template specified in $file.
Will not display the comments template if not>‘comments_array’ filter hook with the list of comments and the post ID respectively.
The $file path is passed through a filter hook called ‘comments_template’, which includes the TEMPLATEPATH and $file combined. Tries the $filtered path first and if it fails it will require the default comment template from the default theme. If either does not exist, then the WordPress process will be halted. It is advised for that reason, that the default theme is not deleted.
Will not try to get the comments if the post has none.
The file to load.
Default value: '/comments.php'
Whether to separate the comments by comment type.
Default value: false