Filter to change the gram Weight Attribute name that the WooConnect add-on uses.

Example code

/** Filter to change the gram weight name in WooConnect */
function acme_weight_gram( $weightgram ) {
    $weightgram = '1g';
    return $weightgram;
}
add_filter( 'wpdwc_weight_gram', 'acme_weight_gram' );

File location:

/wpd-wooconnect/wpd-wooconnect.php

Comments Off on wpdwc_weight_gram