woocommerce_rest_reports_products_extended_attributes
Usage
add_filter( 'woocommerce_rest_reports_products_extended_attributes', 'wp_kama_woocommerce_rest_reports_products_extended_attributes_filter', 10, 2 ); /** * Function for `woocommerce_rest_reports_products_extended_attributes` filter-hook. * * @param $extended_attributes * @param $product_data * * @return */ function wp_kama_woocommerce_rest_reports_products_extended_attributes_filter( $extended_attributes, $product_data ){ // filter... return $extended_attributes; }
- $extended_attributes
- -
- $product_data
- -
Where the hook is called
woocommerce/src/Admin/API/Reports/Products/DataStore.php 231
$extended_attributes = apply_filters( 'woocommerce_rest_reports_products_extended_attributes', $this->extended_attributes, $product_data );