Created
October 23, 2026 07:29
-
-
Save xlplugins/ced7e1f0a3aaecde8711ff58e64b8fd8 to your computer and use it in GitHub Desktop.
allow woocommerce product bundle type in upsell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( | |
| 'wfocu_offer_product_types', | |
| function ( $types ) { | |
| // Only expose bundles when WooCommerce Product Bundles is actually active. | |
| if ( class_exists( 'WC_Product_Bundle' ) && ! in_array( 'bundle', (array) $types, true ) ) { | |
| $types[] = 'bundle'; | |
| } | |
| return $types; | |
| } | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment