Last active
December 11, 2019 22:58
-
-
Save NickGreen/e0509a6d7e178844ee1f35ab9cadd612 to your computer and use it in GitHub Desktop.
Allow all orders to be edited
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( 'wc_order_is_editable', 'wc_make_all_orders_editable', 12, 2 ); | |
| function wc_make_all_orders_editable( $is_editable, $order ) { | |
| return true; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment