Local Pickup for WooCommerce 1.2.1 has 2 actions and 39 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Local Pickup for WooCommerce fires an action
add_action( 'dslpfw_wc_shipping_ds_local_pickup_init', function( $object ) {
// Your code runs here.
}, 10, 1 );
// Change a value Local Pickup for WooCommerce is about to use
add_filter( 'dslpfw_auto_select_default_pickup_location', function( $value, $context ) {
// Change $value here.
return $value;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filters whether per-item pickup selection is enabled. */ apply_filters( "dslpfw_{$this->id}_per_item_selection_enabled", 'per-item' === get_option( "{$this->dslpfw_prefix}choose_locations" ) ); -
/** * Filters whether a default pickup location should be auto-selected when * multiple locations are available. */ apply_filters( 'dslpfw_auto_select_default_pickup_location', false, $context ); -
/** * Filters the cart items separated by handling before they are processed into * packages. */ apply_filters( 'dslpfw_cart_shipping_packages', array( 'pickup_items' => $pickup_items, 'ship_items' => $ship_items, ) ); -
/** * Filters the default pickup product availability. */ apply_filters( 'dslpfw_default_pickup_product_availability', 'inherit', $product ); -
/** * Toggles whether to show shipping address fields even when all packages are * for pickup. */ apply_filters( 'dslpfw_display_shipping_address_fields', false ); -
/** * Filter Pickup Location CSV data custom column. */ apply_filters( "dslpfw_export_pickup_locations_{$column_name}_column", '', $column_name, $pickup_location ); -
/** * Filter the pickup locations export file name. */ apply_filters( 'dslpfw_export_pickup_locations_file_name', $file_name ); -
/** * Filter the Pickup Locations CSV export file row headers. */ apply_filters( 'dslpfw_export_pickup_locations_headers', $headers ); -
/** * Filter the cart item handling toggle HTML. */ apply_filters( 'dslpfw_get_cart_item_handling_toggle_html', $field_html, $cart_item_id, $product ); -
/** * Filter an order pickup data. */ apply_filters( 'dslpfw_get_order_pickup_data', $pickup_data, $order, $raw ); -
/** * Filter the package pickup appointment field HTML. */ apply_filters( 'dslpfw_get_package_pickup_appointment_field_html', $field_html, $this->get_package_id(), $this->data_store->get_package() ); -
/** * Filter the package items details HTML. */ apply_filters( 'dslpfw_get_package_pickup_items_field_html', $field_html, $this->get_package_id(), $this->data_store->get_package() ); -
/** * Filters a pickup location before returning it. */ apply_filters( 'dslpfw_get_pickup_location', $pickup_location, $location_post, $location_id ); -
/** * Filter the cart item pickup location field HTML. */ apply_filters( 'dslpfw_get_pickup_location_cart_item_field_html', $field_html, $cart_item_id, $product ); -
/** * Filter the package pickup location field HTML. */ apply_filters( 'dslpfw_get_pickup_location_package_field_html', $field_html, $this->get_package_id(), $this->data_store->get_package() ); -
/** * Filters the default / preferred pickup location for user. */ apply_filters( 'dslpfw_get_user_default_pickup_location', $pickup_location, $user ); -
/** * Filters a product availability for local pickup. */ apply_filters( 'dslpfw_local_pickup_product_availability', $availability, $product ); -
/** * Filter a product category availability for local pickup. */ apply_filters( 'dslpfw_local_pickup_product_category_availability', $availability, $term_id ); -
/** * Filter the pickup location address. */ apply_filters( 'dslpfw_pickup_location_address', $this->address, $piece, $this ); -
/** * Filter the pickup location description notes. */ apply_filters( 'dslpfw_pickup_location_description', $description, $this ); -
/** * Filters the fee adjustment for the pickup location. */ apply_filters( 'dslpfw_pickup_location_fee_adjustment', $fee_adjustment_object, $fee_adjustment_meta, $this ); -
/** * Filters the pickup location formatted name. */ apply_filters( 'dslpfw_pickup_location_option_label', $name, $context, $this ); -
/** * Filter the pickup location phone number. */ apply_filters( 'dslpfw_pickup_location_phone', $phone, $this ); -
/** * Filter the pickup location pickup hours. */ apply_filters( 'dslpfw_pickup_location_pickup_hours', $pickup_hours_object, $pickup_hours_meta, $this ); -
/** * Filters the placeholder text for the pickup location dropdown. */ apply_filters( 'dslpfw_pickup_location_select_placeholder', $placeholder, $object_id, $object_type ); -
/** * Filter whether a product can be picked up. */ apply_filters( 'dslpfw_product_can_be_picked_up', $can_be, $product, $pickup_location ); -
/** * Filter whether a product must be picked up. */ apply_filters( 'dslpfw_product_must_be_picked_up', $must_be, $product, $pickup_location ); -
/** * Filter the pickup package details. */ apply_filters( 'dslpfw_shipping_package_details_array', $items, $package ); -
/** * Filters a timezone identifier. */ apply_filters( 'dslpfw_timezone_identifier', $identifier, $address ); -
/** * Filter validation of pickup errors at checkout. */ apply_filters( 'dslpfw_validate_pickup_checkout', $error_messages, $package_id, $posted_data ); -
/** * Local Pickup shipping method init. */ do_action( 'dslpfw_wc_shipping_ds_local_pickup_init', $this ); -
/** * Filter Local Pickup shipping method settings fields. */ apply_filters( "wc_{$this->id}_settings", $form_fields ); -
apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); -
apply_filters( "dslpfw_{$this->id}_is_available", $is_available, $package, $this ); -
apply_filters( 'dslpfw_frontend_deadline_max_limit', 365 ); -
do_action( 'dslpfw_fs_loaded' ); -
apply_filters( 'dslpfw_json_category_search_limit', 10 ); -
apply_filters( 'dslpfw_json_product_search_limit', 10 ); -
apply_filters( 'dslpfw_pickup_details_data', array( $order->get_id(), $order->get_billing_email(), $pickup_location, $pickup_date, $products_list ), $order, $shipping_item_id ); -
apply_filters( 'dslpfw_pickup_details_headers', array( 'Order Number', 'Customer Email', 'Pickup Location', 'Pickup Date and Time', 'Products List (product: quantity)' ) ); -
apply_filters( 'dslpfw_restricted_address_characters', [ '-', ',', '.', '#', '°' ] );
Generated from Local Pickup for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: