Developer Hooks: Filters and Actions

Main filters and actions; all start with dcbnb_.

FilterUse
dcbnb_should_redirect, dcbnb_redirect_targetWhether add to cart redirects, and where to.
dcbnb_buy_now_active, dcbnb_buy_now_appliesWhether Buy Now is on, and for which product.
dcbnb_buy_now_default_quantityThe quantity Buy Now adds.
dcbnb_sticky_enabled, dcbnb_sticky_bar_classesSticky bar on/off and its CSS classes.
dcbnb_popup_trigger_dataData on the Quick Order trigger.
dcbnb_settings_defaults, dcbnb_pre_sanitize_settingDefault settings, and a value before it is cleaned.
dcbnb_recommendationsThe health score suggestions.
ActionWhen it fires
dcbnb_loadedAfter the plugin has loaded.
dcbnb_eventWhen an analytics event is recorded.
dcbnb_popup_after_submitAfter a Quick Order is placed.
dcbnb_buy_now_before_empty_cart, dcbnb_buy_now_add_failedBefore Buy Now empties the cart, and when adding fails.
dcbnb_settings_savedAfter settings are saved.
dcbnb_product_data_panel, dcbnb_save_product_metaAdd fields to the product Direct Checkout panel.