- 1414.August.SaturdayNo events
add_filter( 'woocommerce_product_get_price', 'miller_add_three_percent', 10, 2 ); add_filter( 'woocommerce_product_get_regular_price', 'miller_add_three_percent', 10, 2 ); function miller_add_three_percent( $price, $product ) { if ( is_admin() ) return $price; // Avoid affecting admin edits $new_price = $price * 1.03; // Increase by 3% return round( $new_price, 2 ); }