(FILTER_NAME_SPECS) filter-hookWC 8.8.0

Filter specs.

Usage

add_filter( '(FILTER_NAME_SPECS)', 'wp_kama_FILTER_NAME_SPECS_filter', 10, 2 );

/**
 * Function for `(FILTER_NAME_SPECS)` filter-hook.
 * 
 * @param array  $specs List of specs.
 * @param string $id    Spec identifier.
 *
 * @return array
 */
function wp_kama_FILTER_NAME_SPECS_filter( $specs, $id ){

	// filter...
	return $specs;
}
$specs(array)
List of specs.
$id(string)
Spec identifier.

Changelog

Since 8.8.0 Introduced.

Where the hook is called

DataSourcePoller::get_specs_from_data_sources()
(FILTER_NAME_SPECS)
DataSourcePoller::get_cached_specs()
(FILTER_NAME_SPECS)
woocommerce/src/Admin/RemoteSpecs/DataSourcePoller.php 125
$specs = apply_filters( self::FILTER_NAME_SPECS, $specs, $this->id );
woocommerce/src/Admin/RemoteSpecs/DataSourcePoller.php 147
$specs = apply_filters( self::FILTER_NAME_SPECS, $specs, $this->id );

Where the hook is used in WooCommerce

Usage not found.