#2704 closed enhancement (worksforme)
new hook request
| Reported by: | enricopulatzo | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.0.2 |
| Severity: | normal | Keywords: | hook action bg|dev-feedback |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
a copy of my modified classes.php file