#2704 closed enhancement (worksforme)
new hook request
Reported by: | enricopulatzo | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0.2 |
Component: | General | Keywords: | hook action bg|dev-feedback |
Focuses: | Cc: |
Description
I'd like to see a new hook added for sending additional/custom headers for a regular pageview. The change that would be made would altering the wp-includes/classes.php send_headers() function.
function send_headers() { <snip!> } else if ( empty($this->query_vars['feed']) ) { @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); /* change is below: */ do_action('send_headers_pageview'); } else { <snip!>
I called it "send_headers_pageview" but as long as it gets picked up, it could be called "grandmothers_blue_hair" for all I care :)
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
a copy of my modified classes.php file