Aleš Sýkora wrote

Modify ‘ASAP’ label in Iconic Delivery Slots

5. 1. 2021 in

You can use this code snippet to change the label for ‘ASAP’

 * Iconic Woocommerce Delivery Slots - Modify 'ASAP' label.
 * @param string $label Label.
 * @return string
function iconic_wds_modify_asap_label( $label ) {
	return 'Delivery NOW'; // Change this value 
add_filter( 'iconic_wds_asap_label', 'iconic_wds_modify_asap_label', 10, 1 );

In this example, I have changed ASAP to ‘Delivery NOW’, you can change this to anything.

Please note it will not change the label right away after adding this code, because timeslot data is cached in the database. You will need to save the Delivery slots settings without changing anything to ensure the cache is cleared.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Disable WordPress admin bar for all except admins
17. 6. 2021 in
If you have your custom administration for users made with Toolset, you will propably need to hide the admin bar for your users except administrators. So if you have this question: “When you are logged in, the black wordpress top bar is showing up – is it possible to hide this bar for all users […]
Read More
Aleš Sýkora wrote
Fix WooCommerce coupon input in Oxygen
9. 4. 2021 in ,
The field for adding coupons in WooCommerce cart is horrible in Oxygen. If you want to fix it from: Before: After: Then feel free to use and edit my CSS:
Read More
Aleš Sýkora wrote
WordPress term list without links
1. 7. 2021 in ,
If you use the_terms for list of posts taxonomy terms, then you get the list with automatically added links. Sometimes you do not need the links. Then you can use the strip_tags. Get term list with links Get term list without links Get the terms custom output
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram