jetpack_honor_dnt_header_for_stats, false

jetpack_honor_dnt_header_for_stats, false

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_honor_dnt_header_for_stats, false') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-stats/src/class-main.php line 123
    		 * @since-jetpack 6.1.0
    		 *
    		 * @param bool false Honors DNT for clients who don't want to be tracked. Defaults to false. Set to true to enable.
    		 */
    		if ( false === apply_filters( 'jetpack_honor_dnt_header_for_stats', false ) ) {
    			return false;
    		}
    
    		foreach ( $_SERVER as $name => $value ) {
    			if ( 'http_dnt' === strtolower( $name ) && 1 === (int) $value ) {
    				return true;