comments_template

comments_template

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('comments_template') is found 1 times:

  • /wp-includes/comment-template.php line 1615
    	 * @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( $template_path . $file ) ) {
    		require $template_path . $file;
    	} else { // Backward compat code will be removed in a future release.
    

See this hook used in plugins: