Created
February 2, 2026 08:30
-
-
Save xlplugins/5e255daa65771bb0ee3739f69059f6a2 to your computer and use it in GitHub Desktop.
Add shipping in upsell with filter in batching scenrios
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
| // To enable override (charge full shipping): | |
| add_filter( 'wfocu_dynamic_shipping_override', '__return_true' ); | |
| // To add shipping to subscriptions: | |
| add_filter( 'wfocu_subscription_args', function( $args, $get_product, $product, $subscription_order ) { | |
| $args['add_shipping'] = true; | |
| return $args; | |
| }, 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment