[wp-trac] [WordPress Trac] #10888: wp_head() arguments
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 2 06:50:47 UTC 2009
#10888: wp_head() arguments
-------------------------+--------------------------------------------------
Reporter: prometh | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: Template | Version: 2.8.4
Severity: normal | Keywords: wp_head
-------------------------+--------------------------------------------------
It'd be great if we could organize our <head> more. We could do this by
separating things with wp_head() with 1 argument that would refer to a
filter.
wp_head('link');
wp_head('meta');
wp_head('script');
with wp_head() echo'ing all. This would increase backwards compatibility.
Adding to the wp_head filters could work this:
add_action('wp_head_link', 'functionName');
add_action('wp_head_meta', 'functionName');
add_action('wp_head_script', 'functionName');
with add_action('wp_head', functionName); still working as it currently
does.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10888>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list