send_headers
Fires once the requested HTTP headers for caching, content type, etc. have been sent.
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 590
do_action_ref_array( 'send_headers', array( &$this ) );