(FILTER_NAME)
Usage
add_filter( '(FILTER_NAME)', 'wp_kama_FILTER_NAME_filter', 10, 2 ); /** * Function for `(FILTER_NAME)` filter-hook. * * @param $data_sources * @param $id * * @return */ function wp_kama_FILTER_NAME_filter( $data_sources, $id ){ // filter... return $data_sources; }
- $data_sources
- -
- $id
- -
Where the hook is called
(FILTER_NAME)
woocommerce/src/Admin/DataSourcePoller.php 127
$data_sources = apply_filters( self::FILTER_NAME, $this->data_sources, $this->id );