8 seconds
Filter to change the half (ounce) Weight Attribute name that the WooConnect add-on uses.
Example code
/** Filter to change the half ounce weight name in WooConnect */ function acme_weight_half( $weighthalf ) { $weighthalf = '14g'; return $weighthalf; } add_filter( 'wpdwc_weight_half', 'acme_weight_half' );
File location:
/wpd-wooconnect/wpd-wooconnect.php