Created
May 24, 2019 08:30
-
-
Save plugin-republic/9563dcc7f10ac30324ed1b070df2f835 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Filter flat rate fields to ensure that the same flat rate field can get charged for multiple products | |
*/ | |
function prefix_filter_flat_rate( $label, $id, $flat_rate ) { | |
$label .= $id; | |
return $label; | |
} | |
add_filter( 'pewc_flat_rate_label', 'prefix_filter_flat_rate', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment