Dynamically Change Delivery Time based on Day Name 3
The below article is for WooFood , Food Ordering Plugin for WordPress and WooCommerce. If you don't already have it . Please take a look on the product page
add_filter( 'woofood_adjust_delivery_time_thankyou', 'wpslash_custom_hook_dynamically_change_pickup_time', 10, 2 );
add_filter( 'woofood_adjust_pickup_time_thankyou', 'wpslash_custom_hook_dynamically_change_pickup_time', 10, 2 );
function wpslash_custom_hook_dynamically_change_pickup_time( $time, $order_id ) {
	$current_day_name= current_time("l");


	if($current_day_name == "Monday")
	{
		 return "45";
	}
	if($current_day_name == "Tuesday")
	{
		 return "30";
	}
	if($current_day_name == "Wednesday")
	{
		 return "60";
	}


    return $time;
}
The above article is for WooFood Food Delivery Plugin for WooCommerce