formatting output of wp_head
-
In before anyone “in before”‘s, I know I can hook the individual actions within wp_head and prefix them, I’m more checking if there was a way to do it by default to _anything_ placed in wp_head’s action queue.
Ok so the issue is that I’m pedantic when it comes to code formatting. My code is structured as it should be, but when I examine the code (yes yes, nobody looks there, but as I said.. I care :D), wp_head dumps all the action outputs like this:
<head profile="https://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>TITLE</title> <link rel="stylesheet" href="THEME_CSS" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="TITLE RSS Feed" href="URL_FEED" /> <link rel="pingback" href="URL_XMLRPC" /> <link rel="index" title="TITLE" href="URL" /> <meta name="generator" content="Wordpress 3.0" /> <script type="text/javascript" src="CUSTOM_ACTION_JS"></script> </head>
Ignore the uppercase words, they are nothing more than me blanking out the domain etc with something useful.
So the main question is, is it possible to prefix all actions within wp_head with (in my case) double tab, without having to do each line individually?
As I said before, got no issue filtering each action individually, just checking if there was an easier way that I’ve been unable to see.
- The topic ‘formatting output of wp_head’ is closed to new replies.