Override comments.php template with plugin May 28, 2022 by Tarik Billa The comments_template hook: add_filter( 'comments_template', function ( $template ) { return '/absolute/path/to/your/comments.php'; });