(FILTER_NAME)
Filter data sources.
Usage
add_filter( '(FILTER_NAME)', 'wp_kama_FILTER_NAME_filter', 10, 2 );
/**
* Function for `(FILTER_NAME)` filter-hook.
*
* @param array $data_sources List of data sources.
* @param string $id Spec identifier.
*
* @return array
*/
function wp_kama_FILTER_NAME_filter( $data_sources, $id ){
// filter...
return $data_sources;
}
- $data_sources(array)
- List of data sources.
- $id(string)
- Spec identifier.
Changelog
| Since 8.8.0 | Introduced. |
Where the hook is called
(FILTER_NAME)
woocommerce/src/Admin/RemoteSpecs/DataSourcePoller.php 168
$data_sources = apply_filters( self::FILTER_NAME, $this->data_sources, $this->id );