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.5.1

apply_filters('woocommerce_rest_reports_products_extended_attributes') is found 1 times:

  • /src/Admin/API/Reports/Products/DataStore.php line 243
    					$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( 'variable' ) ) {
    							continue;
    						}
    						$function = 'get_children';