Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
# <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Provide links or keys to any relevant tickets, articles or other resources |
<?php | |
/* | |
Hides flat rate on checkout page. Tested and working on Woocommerce V6.2.0 | |
Change the the $product_category to be your selected category. | |
*/ | |
add_filter( 'woocommerce_package_rates', 'conditional_hide_shipping_methods', 100, 2 ); | |
function conditional_hide_shipping_methods( $rates, $package ){ |