Aleš Sýkora / January 5, 2021 / 0 comments

Modify ‘ASAP’ label in Iconic Delivery Slots

Post summary: You can use this code snippet to change the label for ‘ASAP’ when using ASAP delivery.

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.

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

0 comments

Share Your Thoughts