woocommerce_rest_reports_products_extended_attributes

woocommerce_rest_reports_products_extended_attributes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

apply_filters('woocommerce_rest_reports_products_extended_attributes') is found 1 times:

  • /src/Admin/API/Reports/Products/DataStore.php line 244
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
        $products_data[ $key ]['extended_info']['name'] = $product_names[ $product_id ] ? sprintf( __( '%s (Deleted)', 'woocommerce' ), $product_names[ $product_id ] ) : __( '(Deleted)', 'woocommerce' );
        continue;
    }
     
    $extended_attributes = apply_filters( 'woocommerce_rest_reports_products_extended_attributes', $this->extended_attributes, $product_data );
    foreach ( $extended_attributes as $extended_attribute ) {
        if ( 'variations' === $extended_attribute ) {
            if ( ! $product->is_type( ProductType::VARIABLE ) ) {
                continue;
            }
            $function = 'get_children';