woocommerce_rest_reports_variations_extended_attributes хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_rest_reports_variations_extended_attributes', 'filter_function_name_1729', 10, 2 ); function filter_function_name_1729( $extended_attributes, $product_data ){ // filter... return $extended_attributes; }
- $extended_attributes
- -
- $product_data
- -
Где вызывается хук
woocommerce/packages/woocommerce-admin/src/API/Reports/Variations/DataStore.php 206
$extended_attributes = apply_filters( 'woocommerce_rest_reports_variations_extended_attributes', $this->extended_attributes, $product_data );