Hi there @muleque
You can use the wc_order_tip_rates filter.
Example:
add_filter( 'wc_order_tip_rates', 'your_custom_wc_order_tip_rates' );
function your_custom_wc_order_tip_rates( $rates ) {
$rates = array(1,2,5,10);
return $rates;
}
You can paste this code in your functions.php file or in another plugin.
Please also make sure, in your case, that you select the Fixed amount in the Tip Type select box on the Settings page.
Best regards,
Adrian
Thank you so much for the above code and for building this.
Using it on giveback.cf
Hi there @abarba,
Many thanks for your kind words. Always a good feeling to help and give something back to the community 🙂
Best regards,
Adrian