wphooks.info - comments_template

comments_template

(trunk - 5.0-alpha-43304)

The hook occurs in the following file:

wp-includes/comment-template.php:
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
	}

	$theme_template = STYLESHEETPATH . $file;
	/**
	 * Filters the path to the theme template file used for the comments template.
	 *
	 * @since 1.5.1
	 *
	 * @param string $theme_template The path to the theme template file.
	 */
	$include = apply_filters( 'comments_template', $theme_template );
	if ( file_exists( $include ) ) {
		require( $include );
	} elseif ( file_exists( TEMPLATEPATH . $file ) ) {
		require( TEMPLATEPATH . $file );
	} else { // Backward compat code will be removed in a future release
		require( ABSPATH . WPINC . '/theme-compat/comments.php' );
	}
}