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', '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(массив)
Empty array by default.

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

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

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

get_file_data()
extra_(context)_headers
wp-includes/functions.php 6871
$extra_headers = $context ? apply_filters( "extra_{$context}_headers", array() ) : array();

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

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