jetpack_stats_excluded_ips, array(
jetpack_stats_excluded_ips, array(
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('jetpack_stats_excluded_ips, array(') is found 1 times:
- /jetpack_vendor/automattic/jetpack-stats/src/class-main.php line 253
* @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 )