Search code examples
wordpresswordpress-theming

How to find HTML rendered by <?php wp_head(); ?> in WordPress?


I have done a lot of search on it, most of the people are saying

wp_head() is located in wp-includes/general-template.php

wp_head is in default-filter.php in wp-includes

But I want to know where the html/php file placed in file directory that is rendered by wp_head(), so I can edit that file. Thanks


Solution

  • The wp_head() function simply calls all functions hooked to the wp_head action. Various functions will be hooked to this action, they may reside in the WordPress core, or perhaps in plugins you may be using, or even in your theme's functions.php file.

    To my knowledge, there isn't a specific wp_head template 'file' that you can edit.

    Ref: