Created
June 5, 2017 11:20
-
-
Save kreamweb/595ac6310ee49caf5d013f76d602ead0 to your computer and use it in GitHub Desktop.
Set override shipping off when edit a quote
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
| <?php | |
| add_filter( 'ywraq_order_metabox', 'ywraq_override_shipping_off' ); | |
| function ywraq_override_shipping_off( $fields ) { | |
| if ( isset( $fields['ywraq_disable_shipping_method'] ) ) { | |
| $fields['ywraq_disable_shipping_method']['std'] = 'no'; | |
| } | |
| return $fields; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment