extra_(context)_headers
Filters extra file headers by context.
The dynamic portion of the hook name, $context, refers to the context where extra headers might be loaded.
Usage
add_filter( 'extra_(context)_headers', 'wp_kama_extra_context_headers_filter' ); /** * Function for `extra_(context)_headers` filter-hook. * * @param array $extra_context_headers Empty array by default. * * @return array */ function wp_kama_extra_context_headers_filter( $extra_context_headers ){ // filter... return $extra_context_headers; }
- $extra_context_headers(array)
- Empty array by default.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
extra_(context)_headers
wp-includes/functions.php 6883
$extra_headers = $context ? apply_filters( "extra_{$context}_headers", array() ) : array();