jetpack_honor_dnt_header_for_wga

jetpack_honor_dnt_header_for_wga

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.11.3.1

apply_filters('jetpack_honor_dnt_header_for_wga') is found 1 times:

  • /modules/google-analytics/classes/wp-google-analytics-utils.php line 82
    		 * @since 11.3
    		 *
    		 * @param bool $honor_dnt Honors DNT for clients who don't want to be tracked. Set to true to enable.
    		 */
    		if ( false === apply_filters( 'jetpack_honor_dnt_header_for_wga', Jetpack_Google_Analytics_Options::honor_dnt_is_enabled() ) ) {
    			return false;
    		}
    
    		foreach ( $_SERVER as $name => $value ) {
    			if ( 'http_dnt' === strtolower( $name ) && 1 === (int) $value ) {
    				return true;