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

Following https://codex.wordpress.org/Function_Reference/wp_head

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

If you want edit something, execute a Control+MAJ+F (Find in folder) in wp-includes and it gives you the file where the specific content should be edited.


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:

  • http://codex.wordpress.org/Plugin_API/Action_Reference/wp_head
  • http://codex.wordpress.org/Function_Reference/wp_head