[wp-trac] Re: [WordPress Trac] #6945: Add wp_header hook
WordPress Trac
wp-trac at lists.automattic.com
Sat May 10 02:26:56 GMT 2008
#6945: Add wp_header hook
-------------------------+--------------------------------------------------
Reporter: sirzooro | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.5.1
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by Viper007Bond):
-1. Very fringe case and I don't see the hook being used on a regular
basis. Plus, since this is a theme hook, it's up to the theme developer to
add the hook to their theme. I still very often come across themes without
the head and footer hooks and those have been around since the dawn of
time.
If you need this just for your site, then just modify your themes you use.
Hooks aren't registered anywhere -- you can make up your own ones. Just
add `<?php do_action('your_hook'); ?>` to each of your themes and then use
the hook.
If you're writing a plugin to be distributed, then you should either have
the user edit their theme and add a function where they want your plugin
to output or you should use `ob_start()` or whatever it is to add in the
HTML yourself.
Recommend "wontfix".
--
Ticket URL: <http://trac.wordpress.org/ticket/6945#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list