send_headers
Fires once the requested HTTP headers for caching, content type, etc. have been sent.
The wp_finalized_template_enhancement_output_buffer action may be used to send headers after rendering the template into an output buffer.
Usage
add_action( 'send_headers', 'wp_kama_send_headers_action' );
/**
* Function for `send_headers` action-hook.
*
* @param WP $wp Current WordPress environment instance (passed by reference).
*
* @return void
*/
function wp_kama_send_headers_action( $wp ){
// action...
}
- $wp(WP)
- Current WordPress environment instance (passed by reference).
Changelog
| Since 2.1.0 | Introduced. |
Where the hook is called
send_headers
wp-includes/class-wp.php 598
do_action_ref_array( 'send_headers', array( &$this ) );