8 seconds
Filter to change the halfgram Weight Attribute name that the WooConnect add-on uses.
Example code
/** Filter to change the half gram weight name in WooConnect */ function acme_weight_halfgram( $weighthalfgram ) { $weighthalfgram = '0.5g'; return $weighthalfgram; } add_filter( 'wpdwc_weight_halfgram', 'acme_weight_halfgram' );
File location:
/wpd-wooconnect/wpd-wooconnect.php