Available Hooks: Actions And Filters

Hooks are a great feature of WordPress which allow you to change or add code without editing core files. 

There’s are two types of hook available; actions and filters.

  • Actions
    An action allows you to insert or run code at a specific point.
  • Filters
    A filter allows you to modify the data that is returned in a function or method.

Some of these hooks have additional parameters passed to them which you can use in your own functions. You can find the hook in the reference file to see what is available.

Actions

Hook iconic_wds_admin_deliveries_table_body_cell

Type action

File iconic-woo-delivery-slots.php

Hook iconic_wds_admin_deliveries_table_heading

Type action

File iconic-woo-delivery-slots.php

Hook iconic_wds_after_checkout_fields

Type action

File templates/checkout-fields.php

Description Fires after the checkout fields container.

Hook iconic_wds_after_delivery_details_field_wrapper

Type action

File templates/checkout-fields.php

Args 1

  • $field_data — array

Description Fires after each checkout field.

Hook iconic_wds_after_delivery_details_fields

Type action

File templates/checkout-fields.php

Description Fires after the checkout fields, but inside the container.

Hook iconic_wds_after_delivery_details_title

Type action

File templates/checkout-fields.php

Description Fires after the "Delivery Details" title.

Hook iconic_wds_before_checkout_fields

Type action

File templates/checkout-fields.php

Description Fires before the checkout fields container.

Hook iconic_wds_before_delivery_details_field_wrapper

Type action

File templates/checkout-fields.php

Args 1

  • $field_data — array

Description Fires before each checkout field.

Filters

Hook iconic_wds_allowed_days

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_allowed_days

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_asap_label

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_asap_slot_data

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_available_dates

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_checkout_field_data

Type filter

File templates/checkout-fields.php

Hook iconic_wds_checkout_var_has_date_conflict

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_chosen_method

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_chosen_method

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_chosen_method

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_date_display

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_days_override_setting_apply_for_specific_days

Type filter

File inc/class-settings.php

Description Remove those specific days which do not comply with the overriden allowed weekdays.

Hook iconic_wds_delivery_days

Type filter

File inc/class-settings.php

Hook iconic_wds_delivery_days_max_orders

Type filter

File inc/class-settings.php

Hook iconic_wds_delivery_slot_data

Type filter

File inc/class-order.php

Hook iconic_wds_delivery_slots_allowed

Type filter

File inc/class-checkout.php

Hook iconic_wds_delivery_slots_allowed

Type filter

File inc/class-checkout.php

Hook iconic_wds_delivery_slots_allowed

Type filter

File inc/class-checkout.php

Hook iconic_wds_delivery_slots_allowed

Type filter

File inc/class-checkout.php

Hook iconic_wds_delivery_slots_allowed

Type filter

File inc/class-checkout.php

Hook iconic_wds_display_for_virtual

Type filter

File inc/class-checkout.php

Hook iconic_wds_fee

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_field_position_choices

Type filter

File inc/class-settings.php

Hook iconic_wds_force_load_reservation_calendar_assets

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_get_cutoff

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_get_orders_remaining_for_day

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_get_orders_remaining_for_day

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_get_orders_remaining_for_day

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_get_product_specific_settings

Type filter

File inc/class-override-settings.php

Hook iconic_wds_get_term_specific_settings

Type filter

File inc/class-override-settings.php

Hook iconic_wds_is_day_allowed

Type filter

File inc/class-date-helpers.php

Args 3

Description WDS Date Helper class.

Hook iconic_wds_is_delivery_day

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_is_delivery_day

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_is_delivery_day

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_is_delivery_day

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_is_holiday

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_is_next_day_allowed

Type filter

File inc/class-date-helpers.php

Args 1

  • $allowed — bool

Description Allow plugins/themes to set "is next day delivery allowed".

Hook iconic_wds_is_same_day_allowed

Type filter

File inc/class-date-helpers.php

Args 1

  • $allowed — bool

Description Allow plugins/themes to set "is same day delivery allowed".

Hook iconic_wds_is_timeslot_available_on_day

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_is_timeslot_in_past

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_loading_text

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_loading_text

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_minmax_method

Type filter

File inc/class-settings.php

Hook iconic_wds_next_day_cutoff

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_next_day_date

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_next_day_date

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_next_delivery_date

Type filter

File inc/class-shortcodes.php

Hook iconic_wds_reservations_pre_query

Type filter

File inc/class-reservations.php

Hook iconic_wds_reservations_query_result

Type filter

File inc/class-reservations.php

Hook iconic_wds_rest_api_permission_callback

Type filter

File inc/class-api.php

Hook iconic_wds_same_day_cutoff

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_same_day_date

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_same_day_date

Type filter

File inc/class-date-helpers.php

Hook iconic_wds_shipping_method_labels

Type filter

File inc/class-settings.php

Hook iconic_wds_shipping_method_options

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_shipping_method_options

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_shipping_method_options

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_shipping_methods

Type filter

File inc/class-settings.php

Hook iconic_wds_shortcode_get_order_date

Type filter

File inc/class-shortcodes.php

Hook iconic_wds_shortcode_get_order_date_time

Type filter

File inc/class-shortcodes.php

Hook iconic_wds_shortcode_get_order_time

Type filter

File inc/class-shortcodes.php

Hook iconic_wds_slot_data

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_slots_available_count

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_slots_available_count

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_slots_available_on_date

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_slots_available_on_date

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_slots_available_on_date

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_specific_delivery_dates

Type filter

File inc/class-settings.php

Hook iconic_wds_specific_delivery_dates

Type filter

File inc/class-settings.php

Hook iconic_wds_specific_delivery_dates

Type filter

File inc/class-settings.php

Description Sometimes we would want to skip min/max check as it could cause infinite loop.

Hook iconic_wds_specific_delivery_dates

Type filter

File inc/class-settings.php

Hook iconic_wds_standard_shipping_method

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_time_display

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_timeslot

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_timeslot_shipping_method_allowed

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_timeslot_shipping_method_allowed

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_timeslot_shipping_method_allowed

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_timeslot_shipping_method_allowed

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_timeslot_shipping_method_allowed

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_timeslot_shipping_method_allowed

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_timeslots

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_zone_based_shipping_method

Type filter

File iconic-woo-delivery-slots.php

Hook iconic_wds_{$type}_delivery_date

Type filter

File inc/class-date-helpers.php

WooCommerce Delivery Slots

Choose a delivery date and time for each order. Add a limit to the number of allowed reservations, restrict time slots to specific delivery methods, and so much more.

Was this helpful?

Please let us know if this article was useful. It is the best way to ensure our documentation is as helpful as possible.