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 templates/admin/deliveries-page.php
Args 1
Description Admin – deliveries table body.
Hook iconic_wds_admin_deliveries_table_heading
Type action
File templates/admin/deliveries-page.php
Description Admin – deliveries table heading ends.
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.
Hook iconic_wds_order_timeslot_updated
Type action
File inc/class-ajax.php
Args 2
-
$order
— \WC_Order -
$context
— string
Description Fired after timeslot is updated from the frontend as well as from the admin dashboard.
Hook rest_api_init
Type action
File tests/woocommerce/legacy/framework/class-wc-rest-unit-test-case.php
Filters
Hook iconic_wds_can_customer_update_timeslot
Type filter
File inc/class-edit-timeslots.php
Args 2
-
$can_update
— bool -
$order
— \WC_Order
Description Can customer update the timeslot.
Hook iconic_wds_can_customer_update_timeslot
Type filter
File inc/class-edit-timeslots.php
Hook iconic_wds_can_customer_update_timeslot
Type filter
File inc/class-edit-timeslots.php
Hook iconic_wds_checkout_field_data
Type filter
File templates/checkout-fields.php
Args 1
Description Checkout field data.
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_display_for_virtual
Type filter
File inc/class-checkout.php
Hook iconic_wds_edit_timeslot_statuses
Type filter
File inc/class-edit-timeslots.php
Args 1
Description Customers can update timeslot for orders beloning to these statuses only.
Hook iconic_wds_field_position_choices
Type filter
File inc/class-settings.php
Args 1
Description Field positions.
Hook iconic_wds_get_child_orders_statuses
Type filter
File inc/class-edit-timeslots.php
Args 1
Description Allowed order statuses for child orders.
Hook iconic_wds_get_product_specific_settings
Type filter
File inc/class-override-settings.php
Description Cache.
Hook iconic_wds_get_term_specific_settings
Type filter
File inc/class-override-settings.php
Hook iconic_wds_minmax_method
Type filter
File inc/class-settings.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_rest_get_bookable_dates_shipping_method_id
Type filter
File inc/class-api.php
Args 2
Description Allow custom plugin to modify shipping method ID.
Hook iconic_wds_shipping_method_labels
Type filter
File inc/class-settings.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
Args 2
Description Get order time shortcode output.
Hook iconic_wds_shortcode_get_order_date_time
Type filter
File inc/class-shortcodes.php
Args 4
Description Shortcode output for [iconic-wds-get-order-date-time]
Hook iconic_wds_shortcode_get_order_time
Type filter
File inc/class-shortcodes.php
Args 2
Description Get order time shortcode output.
Hook wpo_wcpdf_meta_box_actions
Type filter
File inc/class-compat-pdf-invoices-packing-slips.php
Args 2
Description WooCommerce PDF Invoices & Packing Slips – filter to modify metabox actions.
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.