Skip to content

Instantly share code, notes, and snippets.

@fernandoacosta
Created April 7, 2018 03:59
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fernandoacosta/c395c51abeaf80e3fff73015e672eed1 to your computer and use it in GitHub Desktop.
Limitar a simulação dos Correios a 30kg
add_filter( 'woocommerce_correios_package_weight', 'fa_custom_package_weight' );
function fa_custom_package_weight( $weight ) {
return $weight > 30 ? 30 : $weight;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment