w3tc_pagecache_set_header

w3tc_pagecache_set_header

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: w3-total-cache.2.8.2

apply_filters('w3tc_pagecache_set_header') is found 1 times:

  • /Cache_File_Generic.php line 124
    			if ( isset( $var['headers'] ) ) {
    				$headers = array();
    				foreach ( $var['headers'] as $h ) {
    					if ( isset( $h['n'] ) && isset( $h['v'] ) ) {
    						$h2 = apply_filters( 'w3tc_pagecache_set_header', $h, $h, 'file_generic' );
    
    						if ( ! empty( $h2 ) ) {
    							$name_escaped = $this->escape_header_name( $h2['n'] );
    							if ( ! isset( $headers[ $name_escaped ] ) ) {
    								$headers[ $name_escaped ] = array(
    									'values'      => array(),
    

See this hook used in plugins: