extra_(context)_headers хук-фильтр . WP 2.9.0
Filters extra file headers by context.
The dynamic portion of the hook name, $context, refers to the context where extra headers might be loaded.
Использование
add_filter( 'extra_(context)_headers', 'filter_function_name_5635' ); function filter_function_name_5635( $extra_context_headers ){ // filter... return $extra_context_headers; }
- $extra_context_headers(массив)
- Empty array by default.
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
extra_(context)_headers
wp-includes/functions.php 6134
$extra_headers = $context ? apply_filters( "extra_{$context}_headers", array() ) : array();