FOX - Currency Switcher for WooCommerce

woocs_product_fixed_price_data_simple_types

The woocs_product_fixed_price_data_simple_types filter declares which product types the fixed per-currency price fields appear for in the product editor. By default the list is simple, external, subscription, composite, bundle and box_product. A custom product type registered by a theme or another plugin is not on it, so its products show no fixed price fields until you add the type yourself.
add_filter('woocs_product_fixed_price_data_simple_types', function ($types) {
    $types[] = 'my_custom_type';

    return $types;
});
Parameters:
  • $types (array) - product type slugs
Returns:
  • (array) the list of types that get fixed price fields
Note: adding a type makes the fields appear, it does not guarantee the custom type reads them when it calculates a price. Test a real order in a second currency before relying on it.