(FILTER_NAME_SPECS)
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
(FILTER_NAME_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 );