Box Builder Actions
boxbuilder_pro_loaded
Fires when the BoxBuilder plugin finishes loading. Use this to initialize your extensions.
boxbuilder/order_processing
Fires when an order containing box products moves to processing status.
boxbuilder/before_checkout_with_boxes
Fires before the checkout form is rendered when the cart contains box products.
boxbuilder/order_item_created
Fires when a box order line item is created during checkout.
boxbuilder/order_created
Fires when an order containing box products is successfully created.
boxbuilder/mini_cart_boxes
Fires when the mini cart displays box items.
boxbuilder/stock_reserved Pro
Fires when stock is reserved for a box item (prevents overselling).
boxbuilder/share_created Pro
Fires when a shareable box link is created.
boxbuilder/share_loaded Pro
Fires when a shared box configuration is loaded from a URL.
boxbuilder/customization_locked Pro
Fires when a subscription box customization window is locked (deadline passed).
boxbuilder/reminder_sent Pro
Fires when a customization reminder email is sent to a subscription customer.
Box Builder Filters
boxbuilder/pricing_models
Filter the available pricing models for boxes.
boxbuilder/price_html
Filter the HTML output of box prices on the frontend.
boxbuilder/default_sizes Pro
Filter the default box size templates.
Extensibility Hook Points
These hooks are registered as integration points for extending BoxBuilder. They can be used by add-ons and custom code:| Hook | Type | Description |
|---|---|---|
boxbuilder/box_added_to_cart | Action | Fires when a box is added to cart |
boxbuilder/before_product_grid | Action | Fires before the product grid renders |
boxbuilder/after_add_to_cart_button | Action | Fires after the add to cart button in the builder |
boxbuilder/product_metabox_fields | Action | Add custom fields to the BoxBuilder product metabox |
boxbuilder/save_product_meta | Action | Save custom product metabox fields |
boxbuilder/available_products | Filter | Filter which products are available for a box |
boxbuilder/box_price | Filter | Modify the calculated box price |
boxbuilder/item_low_stock | Action | Fires when a box item drops below stock threshold |
WooCommerce Integration Hooks
BoxBuilder hooks into standard WooCommerce hooks. You can add your own callbacks at a later priority:Cart Hooks
Order Hooks
Email Hooks
Hook Priority Guide
BoxBuilder uses priority10 for all its hooks. To run your code:
- Before BoxBuilder: Use priority
5or lower - After BoxBuilder: Use priority
15or higher - Override BoxBuilder: Use the same priority (
10) and remove BoxBuilder’s callback first