send_headers хук-событиеWP 2.1.0

Fires once the requested HTTP headers for caching, content type, etc. have been sent.

Использование

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).

Список изменений

С версии 2.1.0 Введена.

Где вызывается хук

WP::send_headers()
send_headers
wp-includes/class-wp.php 590
do_action_ref_array( 'send_headers', array( &$this ) );

Где используется хук в WordPress

Использование не найдено.