extra_{$context}_headers

extra_{$context}_headers

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('extra_{$context}_headers') is found 1 times:

  • /wp-includes/functions.php line 6912
    	 * @since 2.9.0
    	 *
    	 * @param array $extra_context_headers Empty array by default.
    	 */
    	$extra_headers = $context ? apply_filters( "extra_{$context}_headers", array() ) : array();
    	if ( $extra_headers ) {
    		$extra_headers = array_combine( $extra_headers, $extra_headers ); // Keys equal values.
    		$all_headers   = array_merge( $extra_headers, (array) $default_headers );
    	} else {
    		$all_headers = $default_headers;
    	}