jetpack_stats_excluded_ips

jetpack_stats_excluded_ips

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.14.0

apply_filters('jetpack_stats_excluded_ips') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-stats/src/class-main.php line 225
    		 * @since-jetpack 10.6
    		 *
    		 * @param array $excluded_ips An array of IP address strings to exclude from tracking.
    		 */
    		$excluded_ips = (array) apply_filters( 'jetpack_stats_excluded_ips', array() );
    
    		// Should we be counting views for this IP address?
    		$current_user_ip = ( new Visitor() )->get_ip( true );
    		if (
    			! empty( $excluded_ips )
    			&& in_array( $current_user_ip, $excluded_ips, true )