wpdwc_weight_twograms

/** Filter to change the two grams weight name in WooConnect */ function acme_weight_twograms( $weighttwograms ) { $weighttwograms = ‘2g’; return $weighttwograms; } add_filter( ‘wpdwc_weight_twograms’, ‘acme_weight_twograms’ );

 

wpdwc_weight_halfgram

/** 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’ );

 

wpdwc_weight_ounce

/** Filter to change the ounce weight name in WooConnect */ function acme_weight_ounce( $weightounce ) { $weightounce = ’28g’; return $weightounce; } add_filter( ‘wpdwc_weight_ounce’, ‘acme_weight_ounce’ );

 

wpdwc_weight_half

/** 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’ );

 

wpdwc_weight_quarter

/** Filter to change the quarter ounce weight name in WooConnect */ function acme_weight_quarter( $weightquarter ) { $weightquarter = ‘7g’; return $weightquarter; } add_filter( ‘wpdwc_weight_quarter’, ‘acme_weight_quarter’ );

 

wpdwc_weight_eighth

/** Filter to change the eighth weight name in WooConnect */ function acme_weight_eighth( $weighteighth ) { $weighteighth = ‘3.5g’; return $weighteighth; } add_filter( ‘wpdwc_weight_eighth’, ‘acme_weight_eighth’ );

 

wpdcwc_weight_gram

/** 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’ );

 

wpdwc_view_details_button_link

/** Function to change the ‘view details’ button link with WooConnect */ function acme_view_details_link( $newviewbtn ) { $newviewbtn = ‘<a href="’. get_permalink() .’" class="button wpd-connect-btn">View Details</a>’; return $newviewbtn; } add_filter( ‘wpdwc_view_details_button_link’, ‘acme_view_details_link’ );