Created
February 2, 2026 08:30
-
-
Save xlplugins/578d6d794cb20a8e6b35cc0004d9fb41 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