Last active
March 20, 2019 19:36
-
-
Save bporcelli/c516a2a741c0c2a968f2 to your computer and use it in GitHub Desktop.
Shows how to register a custom pickup shipping method using the wootax_local_pickup_methods filter.
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
| /** | |
| * Register the Local Pickup Plus method with WooTax | |
| */ | |
| function wootax_add_local_pickup_method( $methods ) { | |
| $methods[] = 'local_pickup_plus'; // Detected on frontend | |
| $methods[] = 'Local Pickup Plus'; // Detected on backend | |
| return $methods; | |
| } | |
| add_filter( 'wootax_local_pickup_methods', 'wootax_add_local_pickup_method', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment