Skip to content

Instantly share code, notes, and snippets.

@eder-dias
Created November 3, 2017 05:13
Show Gist options
  • Save eder-dias/2ce0266a34977371c825d597a171cc50 to your computer and use it in GitHub Desktop.
Save eder-dias/2ce0266a34977371c825d597a171cc50 to your computer and use it in GitHub Desktop.
Editar pedido independente do status
// WooCommerce: Allow editing of all orders regardless of status
add_filter ( 'wc_order_is_editable', 'majemedia_add_order_statuses_to_editable' );
function majemedia_add_order_statuses_to_editable () {
return TRUE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment