add a tag to wordpress header from a plugin

when i googled this it just showed me plugins to add and remove things from the wordpress header. here is how you actually add your own tags to the wordpress header.

This function will add the tag

to your wordpress header.


// this is the function to add the tags.
function my_function() {
	echo "<!-- hi.. -->";

// this is the action to add something to the header, which will add whatever the function returns above. 
add_action('wp_head', 'my_function', 1);

Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.


Random Quote
All of humanity's problems stem from man's inability to sit quietly in a room alone, wrote Blaise Pascal.