jetpack_heartbeat_stats_array, array(

jetpack_heartbeat_stats_array, array(

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_heartbeat_stats_array, array(') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-connection/src/class-heartbeat.php line 165
    		 *
    		 * @param array  $stats The stats to be filtered.
    		 * @param string $prefix The prefix that will automatically be added at the begining at each stat group name.
    		 */
    		$stats  = apply_filters( 'jetpack_heartbeat_stats_array', array(), $prefix );
    		$return = array();
    
    		// Apply prefix to stats.
    		foreach ( $stats as $stat => $value ) {
    			$return[ "$prefix$stat" ] = $value;
    		}