/** 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’ );
cannabiz_footer_designedby
add_filter( "cannabiz_footer_designedby","cannabiz_footer" ); function cannabiz_footer() { $cannabiz_footer_designedby = " Your text here"; return $cannabiz_footer_designedby; }
wpdwc_buy_now_button_link
/** Function to change the Connect for WooCommerce ‘buy now’ button link */ function acme_buy_now_link( $newbuybtn ) { $newbuybtn = ‘<a href="’. get_permalink() .’" class="button wpd-connect-btn buy-now">Buy Now</a>’; return $newbuybtn; } add_filter( ‘wpdwc_buy_now_button_link’, ‘acme_buy_now_link’ );
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’ );
wpdwc_view_details_button_text
/** Function to change the ‘view details’ button text with WooConnect */ function acme_view_details_button( $viewbtntext ) { $viewbtntext = ‘Item Details’; return $viewbtntext; } add_filter( ‘wpdwc_view_details_button_text’, ‘acme_view_details_button’ );
wpdwc_buy_now_button_text
/** Function to change the Connect for WooCommerce ‘buy now’ button text */ function acme_buy_now_button() { echo ‘New Button Text’; } add_filter( ‘wpdwc_buy_now_button_text’, ‘acme_buy_now_button’ );