BoxCart 1.8.3 has 64 actions and 61 filters, read directly from its source code on Nov 19, 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 BoxCart fires an action
add_action( 'boxcart_basket_updated', function( $basket_id ) {
// Your code runs here.
}, 10, 1 );
// Change a value BoxCart is about to use
add_filter( 'boxcart_email_content', function( $content, $arg2, $arg3 ) {
// Change $content here.
return $content;
}, 10, 3 );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
-
/** * This filter is documented in includes/core/class-boxcart-email.php ($order * is null here). */ apply_filters( 'boxcart_email_content', $content, 'daily_collections', null ); -
/** * Fires when the basket is updated. */ do_action( 'boxcart_basket_updated', $this->basket_id ); -
/** * This filter is documented in includes/core/class-boxcart-order.php */ apply_filters( 'boxcart_customers_can_change_orders', false ); -
/** * Filters the email recipient. */ apply_filters( 'boxcart_email_recipient', $to, $order ); -
/** * Filters the email subject. */ apply_filters( 'boxcart_email_subject', $subject, 'order_confirmation', $order ); -
/** * Per-card order actions in the account mobile orders view. Pro extensions * subscribe to render the "Reorder" button; Free emits nothing. */ do_action( 'boxcart_account_order_card_actions', $boxcart_order ); -
/** * Per-row order actions in the account orders table. Pro extensions subscribe * to render the "Reorder" button; Free emits nothing. */ do_action( 'boxcart_account_order_row_actions', $boxcart_order ); -
/** * Fires when the basket is cleared. */ do_action( 'boxcart_basket_cleared', $this->basket_id ); -
/** * Roles treated as customers (sent to My Account, no admin bar). */ apply_filters( 'boxcart_customer_roles', array( 'boxcart_customer', 'subscriber', 'customer' ) ); -
/** * Filters the template file an email is built from (Pro keeps its own * templates in its own folder). */ apply_filters( 'boxcart_email_template_file', BOXCART_PLUGIN_DIR . 'includes/emails/plain-text/' . $template . '.php', $template, true ); -
/** * This filter is documented in wp-includes/user.php */ apply_filters( 'allow_password_reset', true, 0 ); -
/** * Account dashboard — extension sections. Pro hooks in here to render the * "My Favourites" section. Free renders nothing. */ do_action( 'boxcart_account_dashboard_after_orders' ); -
/** * Customer-facing per-order header actions on the order detail page. Pro * extensions subscribe here to render the order-modification notice + "Modify * Order" button; Free emits nothing. */ do_action( 'boxcart_account_order_header_actions', $order ); -
/** * Fires at the top of the admin dashboard. Use this to add custom dashboard * sections. */ do_action( 'boxcart_admin_dashboard' ); -
/** * Filter the admin help topics array. Extensions can add their own topics or * subtabs by hooking this filter. */ apply_filters( 'boxcart_admin_help_topics', $topics ); -
/** * Per-order admin action buttons in the order header (e.g. the "Print" button * that opens the pick-list / packing-slip picker). Pro extensions subscribe to * render the button; Free emits nothing. */ do_action( 'boxcart_admin_order_header_actions', $boxcart_order ); -
/** * Two-way order messaging is a Pro feature. The Free build renders nothing * here; BoxCart Pro hooks this action to print the Messages card. All message * data + storage lives in the Pro extension. */ do_action( 'boxcart_admin_order_messaging', $boxcart_order, $settings ); -
/** * Extra fields under the status choice, e.g. Pro's "refund the card payment" * option when cancelling a paid order. */ do_action( 'boxcart_admin_order_status_fields', $boxcart_order ); -
/** * Bulk action buttons for the orders list. Pro extensions hook in here to * render the "Print Pick Lists" bulk-print action; Free emits nothing (no bulk * actions in the Free build beyond the select-row UI itself). */ do_action( 'boxcart_admin_orders_bulk_actions' ); -
/** * Fires after settings are saved. */ do_action( 'boxcart_admin_settings_saved', $settings ); -
/** * Fires after an item is added to the basket. */ do_action( 'boxcart_after_add_to_basket', $product_id, $quantity, $this->basket_id, $quantity_type_id ); -
/** * Fires after checkout completes successfully. */ do_action( 'boxcart_after_checkout', $order->get_id() ); -
/** * Companion modals rendered alongside the order-view modal — used by Pro to * render the standalone Reorder Confirmation modal. Free emits nothing. */ do_action( 'boxcart_after_order_modals' ); -
/** * Fires after an unpaid card order has been cancelled. */ do_action( 'boxcart_awaiting_order_discarded', $order_id ); -
/** * Filters the basket total. */ apply_filters( 'boxcart_basket_total', $total, $this ); -
/** * Fires before an item is added to the basket. */ do_action( 'boxcart_before_add_to_basket', $product_id, $quantity, $quantity_type_id ); -
/** * Last check before an admin changes an order's status. Return a WP_Error to * stop the change and show its message. Pro refunds the card payment here when * cancelling with "refund" ticked. */ apply_filters( 'boxcart_before_admin_status_update', null, BoxCart_Order::get( $order_id ), $new_status ); -
/** * Fires before checkout processing begins. */ do_action( 'boxcart_before_checkout' ); -
/** * Fires before an order is deleted, so extensions can remove their own data * for it (Pro removes the order's messages). */ do_action( 'boxcart_before_delete_order', $order_id ); -
/** * Whether checkout asks for (and requires) a billing address. */ apply_filters( 'boxcart_checkout_ask_billing_address', false ); -
/** * Per-payment-method extra checkout markup (e.g. the Stripe Payment Element * mount point). Pro extensions subscribe to this action and render their own * payment-method-specific DOM; Free emits nothing. */ do_action( 'boxcart_checkout_payment_method_extras', $enabled_methods, $default_method ); -
/** * Fires during checkout validation to allow custom validation. */ do_action( 'boxcart_checkout_validation', $posted_data ); -
/** * Fires after the today list, before the footer. */ do_action( 'boxcart_dashboard_widget_after_today', $data ); -
/** * Fires in the searches dashboard widget, above the lists. */ do_action( 'boxcart_dashboard_widget_searches', $panel ); -
/** * Fires at the top of the dashboard widget, before any BoxCart content. */ do_action( 'boxcart_dashboard_widget_top', $data ); -
/** * Allow extensions (e.g. BoxCart Pro) to drop their own custom tables during a * full-data uninstall. Pro owns the location closures, capacity overrides, and * order-messages tables, so it cleans them up here rather than the Free build * referencing tables it never creates. */ do_action( 'boxcart_drop_tables' ); -
/** * Filter the enabled payment-method list. Pro extensions (Stripe) hook in here * to add their method key when configured. Free returns just the * cash/bank-transfer methods. */ apply_filters( 'boxcart_enabled_payment_methods', $methods, $settings ); -
/** * Filter the i18n string map localised to the frontend JS bundle. */ apply_filters( 'boxcart_frontend_i18n', $i18n ); -
/** * Filter the entire localised JS data array. Pro extensions inject * favouritesEnabled / favouritesEmpty / other feature-specific keys via this * filter. */ apply_filters( 'boxcart_frontend_localized_data', $localized_data, $settings ); -
/** * Whether to hide BoxCart's page heading when the theme shows the same title. */ apply_filters( 'boxcart_hide_duplicate_page_heading', true, $element_id ); -
/** * Extension panels. Pro hooks in to render the "Scheduled Closures" and * "Capacity Overrides" panels here. Free renders nothing — the base feature * is opening-hours + time-slots, which the panels above already cover. */ do_action( 'boxcart_location_manage_extra_panels', array( 'location_id' => $location_id, 'closures' => $closures, 'overrides' => $overrides, 'slots' => $slots, ) ); -
/** * Filter whether a location is open on a date. */ apply_filters( 'boxcart_location_open_on_date', $open, $this->id, $date ); -
/** * How much of the order's payment can still go back to the customer's card. * While there is some, the order stays on record (refund it first). Money paid * in person is the shop's to settle. Pro checks the card payment with Stripe. */ apply_filters( 'boxcart_order_card_refundable', 0.0, $this ); -
/** * After the order details on the confirmation page (also reached from the link * in the confirmation email). Pro adds "Change your order" here. */ do_action( 'boxcart_order_confirmation_actions', $order, isset( $view_token ) ? (string) $view_token : '' ); -
/** * A line saying until when the customer can change the order (BoxCart Pro * fills it in when order changes are on). Empty for none. */ apply_filters( 'boxcart_order_email_changes_text', '', $order ); -
/** * Optional notice slot rendered above the Collection Details section in the * order modal. Pro extensions subscribe here to render the "You can modify * this order for X minutes" notice; Free emits nothing. */ do_action( 'boxcart_order_modal_notice' ); -
/** * The words on the confirmation email's link to the order. */ apply_filters( 'boxcart_order_view_link_text', __( 'View your order online →', 'boxcart' ), $order ); -
/** * Payment-method-specific extra detail rows for the admin order view (e.g. * Stripe dashboard link + test-mode badge). Pro renders Stripe-specific * content via this hook. */ do_action( 'boxcart_order_view_payment_detail', $boxcart_order, $payment_method ); -
/** * Filters the outbox email types that aren't about one order. */ apply_filters( 'boxcart_outbox_shop_wide_types', array( 'daily_collections' ) ); -
/** * Filter the dependency array for the unified payment JS bundle. */ apply_filters( 'boxcart_payment_asset_deps', array( 'boxcart-checkout' ), $suffix ); -
/** * Let Pro extensions enrich the payment data localised to JS — Pro payment * providers (e.g. card processing) hook in here to add their own publishable * keys / configuration. The Free build returns the base array unchanged. */ apply_filters( 'boxcart_payment_localization_data', $data ); -
/** * Filter the payment settings problems shown to the shop owner. Pro adds a * warning when card payment is on without its Stripe keys. */ apply_filters( 'boxcart_payment_setup_problems', $problems ); -
/** * Inject extension UI (e.g. favourites heart button) into the top-right corner * of a product card. Pro adds the favourites button via this hook; no-op on * Free. */ do_action( 'boxcart_product_card_corner', $product ); -
/** * Inject extra category pills (e.g. a "Favourites" filter pill). Pro hooks in * via BoxCart_Favourites to render the heart-filter pill when favourites are * enabled. No-op on Free. */ do_action( 'boxcart_products_category_pills', $current_category ); -
/** * Whether to email the customer about this status change. */ apply_filters( 'boxcart_queue_status_email', true, $order_id, $old_status, $new_status ); -
/** * Filters whether searches that lead to a basket add are counted. */ apply_filters( 'boxcart_search_insights_track_adds', false ); -
/** * Fires on the Searches screen under the figures (Pro: week by week). */ do_action( 'boxcart_searches_screen_after_figures', $search_range, $search_terms ); -
/** * Fires on the Searches screen beside the lists (Pro: rising searches, "now in * stock" notes). */ do_action( 'boxcart_searches_screen_side', $search_range, $search_terms ); -
/** * Callbacks on the core form action not to run inside BoxCart's forms. */ apply_filters( 'boxcart_security_form_skip', array( array( 'WP2FA\Methods\Passkeys', 'add_to_admin_login_page' ), array( 'WPCaptcha_Functions', 'login_form_fields' ), ), $form ); -
/** * Sends an outbox email that isn't about one order. */ do_action( 'boxcart_send_shop_wide_email', $email_type, $extra ); -
/** * Pro hooks in here to render the Members-Only Pricing settings panel. Free * renders nothing. */ do_action( 'boxcart_settings_panel_members' ); -
/** * Pro hooks in here to render the Customer-side Order Modification settings * panel. Free renders nothing. */ do_action( 'boxcart_settings_panel_modifications' ); -
/** * Filter whether the add-to-cart controls are shown. */ apply_filters( 'boxcart_show_add_to_cart', true ); -
/** * Filter whether prices are shown on the storefront for the current request. * Free returns the stored setting. Pro's members-only pricing returns false * for logged-out visitors so prices are hidden from guests across the grid, * side cart, basket and checkout consistently. */ apply_filters( 'boxcart_show_prices', $show ); -
/** * Whether to sign the customer in straight after they set a password. */ apply_filters( 'boxcart_sign_in_after_password_set', ! user_can( $user, 'edit_posts' ) && ! self::uses_two_step_sign_in( $user ), $user ); -
/** * Fires when a collection slot is selected. */ do_action( 'boxcart_slot_selected', $this->basket_id, $location_id, $slot_date, $time_start, $time_end ); -
/** * Filter the slots a location has on a date. */ apply_filters( 'boxcart_slots_for_date', $slots, $this->id, $date ); -
/** * Whether an account uses two-step sign-in (for plugins BoxCart doesn't know). */ apply_filters( 'boxcart_user_uses_two_step_sign_in', $uses, $user ); -
/** * This filter is documented in wp-login.php */ apply_filters( 'login_redirect', $requested ? $requested : $account->get_account_page_url(), $requested, $user ); -
/** * This filter is documented in wp-includes/user.php */ apply_filters( 'lostpassword_errors', $errors, $user ); -
/** * This action is documented in wp-includes/user.php */ do_action( 'wp_login', $user->user_login, $user ); -
do_action( 'boxcart_account_order_message_indicator', $boxcart_order ); -
do_action( 'boxcart_order_created', $this->created_order_id ); -
apply_filters( 'boxcart_max_line_quantity', 100000, $quantity_type ); -
do_action( 'boxcart_after_order_placed_stripe', $result, $payment_intent_id ); -
apply_filters( 'boxcart_can_add_to_basket', true ); -
apply_filters( 'boxcart_can_place_order', true ); -
apply_filters( 'boxcart_checkout_discount', 0, $items, $subtotal ); -
apply_filters( 'boxcart_confirm_order_on_view', $boxcart_order ); -
do_action( 'boxcart_customer_details_updated', $customer_id, $data ); -
apply_filters( 'boxcart_dashboard_widget_capability', 'manage_boxcart_shop' ); -
apply_filters( 'boxcart_date_availability', array( 'available' => true, 'reason' => '', ), $this->id, $date ); -
apply_filters( 'boxcart_email_headers', $headers, $to, $subject ); -
apply_filters( 'boxcart_favourites_enabled', false ); -
do_action( 'boxcart_fs_loaded' ); -
apply_filters( 'boxcart_is_favourite', false, $product_id ); -
apply_filters( 'boxcart_location_closures_data', array(), $location_id ); -
do_action( 'boxcart_location_deleted', $location_id ); -
apply_filters( 'boxcart_location_overrides_data', array(), $location_id ); -
apply_filters( 'boxcart_messaging_enabled', false ); -
apply_filters( 'boxcart_order_details_messaging', $response, $order ); -
apply_filters( 'boxcart_order_message_text', '', $order, $extra ); -
apply_filters( 'boxcart_order_modification_enabled', false ); -
apply_filters( 'boxcart_order_modify_state', array( 'enabled' => false, 'can_modify' => false, 'time_remaining' => '', 'reason' => '', ), $order ); -
do_action( 'boxcart_order_status_changed', $this->id, $old_status, $status ); -
do_action( 'boxcart_payment_status_changed', $this->id, $old_status, $status ); -
do_action( 'boxcart_print_pick_list' ); -
apply_filters( 'boxcart_release_awaiting_order', $default, $order, $next_payment ); -
apply_filters( 'boxcart_render_pro_locations_page', false ); -
apply_filters( 'boxcart_reorder_enabled', false ); -
apply_filters( 'boxcart_security_form_fields', true, $form ); -
do_action( 'boxcart_settings_available_views_chooser' ); -
do_action( 'boxcart_settings_panel_messaging' ); -
do_action( 'boxcart_settings_panel_stripe' ); -
do_action( 'boxcart_settings_panel_table_view' ); -
apply_filters( 'boxcart_slot_capacity', $default_capacity, $slot_id, $date, $this->id ); -
do_action( 'boxcart_slot_deleted', $slot_id ); -
apply_filters( 'boxcart_storefront_layout', array( 'enable_card_view' => isset( $settings['enable_card_view'] ) ? (bool) $settings['enable_card_view'] : true, 'enable_table_view' => false, 'default_view' => 'cards', 'show_view_toggle' => false, 'table_products_limit' => 50, ), $settings ); -
apply_filters( 'boxcart_user_favourite_ids', array() ); -
apply_filters( 'boxcart_validate_slot_date', null, $this->id, $date ); -
do_action( 'lostpassword_post', $errors, $user ); -
do_action( 'validate_password_reset', $errors, $user );
Generated from BoxCart'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: