Skip to content

Instantly share code, notes, and snippets.

Created April 7, 2018 03:59
What would you like to do?
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