w3tc_usage_statistics_sources

w3tc_usage_statistics_sources

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: w3-total-cache.2.8.0

apply_filters('w3tc_usage_statistics_sources') is found 2 times:

  • /UsageStatistics_Sources.php line 81
    			'redis_servers' => array(),
    			'apc_servers' => array()
    		);
    
    		$sources = apply_filters( 'w3tc_usage_statistics_sources',
    			$sources );
    
    		if ( count( $sources['memcached_servers'] ) > 0 ) {
    			$memcached = new UsageStatistics_Sources_Memcached(
    				$sources['memcached_servers'] );
    			$metric_values['memcached'] = $memcached->get_snapshot();
    
  • /UsageStatistics_StorageReader.php line 29
    			'redis_servers' => array(),
    			'apc_servers' => array()
    		);
    
    		$summary = apply_filters( 'w3tc_usage_statistics_sources', $summary );
    
    		if ( count( $history ) <= 0 ) {
    			$summary = array( 'period' => array() );
    		} else {
    			$timestamp_start = $history[0]['timestamp_start'];
    			$timestamp_end = $history[count( $history ) - 1]['timestamp_end'];
    

See this hook used in plugins: