Skip to content

Instantly share code, notes, and snippets.

@fernandoacosta
Created April 7, 2018 03:59
Show Gist options
  • Save fernandoacosta/c395c51abeaf80e3fff73015e672eed1 to your computer and use it in GitHub Desktop.
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