Docs

Filters

3 min readUpdated November 29, 2026

Settings and texts#

FilterArgumentsPurpose
nbwt_settingsarray $settingsThe settings the templates use on this page. Change a value for one page, one role or one market without saving it. Applied again on wp, so conditional tags, the user and the WooCommerce customer are known.
nbwt_textarray $texts, string $lang, string $groupAll texts of a group, after edits and translations.
nbwt_string_groupsarray $groupsThe text groups (prefer nbwt_register_texts()).
nbwt_text_packsarray $packsBuilt-in text files: language code => path of a PHP file that returns English text => translation.
nbwt_group_labelsarray $labelsGroup titles on Text & translations.
nbwt_setup_checklistarray[] $itemsItems of the setup checklist. Each has label, ok, url and fix.
nbwt_design_cssstring $cssThe inline design CSS. Append rules for your integration.

Cart and mini cart#

FilterArgumentsPurpose
nbwt_cart_item_lockarray $lock, string $key, array $itemWhether an item can be removed (remove) or its quantity changed (qty), and whether it is a child item (child).
nbwt_show_cart_item_pricebool $show, array $item, string $key, string $htmlShow the unit price under an item. By default only with a crossed-out old price.
nbwt_cart_savingsfloat $amount, WC_Cart $cartThe You save amount. Return 0 to hide the line.
nbwt_free_shipping_minfloat or null $minThe free-shipping minimum in the shopper’s currency. null hides the bar.
nbwt_convert_limitfloat $converted, float $amount, string $currencyA store-currency limit converted to the shopper’s currency.
nbwt_recommended_productsWC_Product[] $products, string $whereThe products You may also like shows (cart, minicart or empty).
nbwt_low_stock_amountint $low, WC_Product $productThe stock level at or under which “Only N left” shows.
nbwt_gift_message_maxint $maxGift message length (default 200).
nbwt_gift_wrap_taxablebool $taxableWhether the gift wrap fee is taxable (default no).
nbwt_wishlist_providerstring $providerThe wishlist plugin for Save for later.
nbwt_wishlist_addbool $added, int $product_id, string $providerAdd a product to a custom wishlist.
nbwt_coupon_link_paramstring $paramThe link parameter that applies a coupon. Default coupon.
nbwt_mini_cart_fragmentsarray $fragmentsExtra parts to refresh with the mini cart: CSS selector => HTML.
nbwt_mini_cart_open_on_addbool $openWhether the drawer opens after an AJAX add to cart.
nbwt_allowed_originsstring[] $hostsHosts the storefront requests are accepted from. Add a host for a headless front end.

Checkout#

FilterArgumentsPurpose
nbwt_show_checkout_loginbool $showShow Sign in at checkout on this page.
nbwt_show_checkout_couponbool $showShow the checkout coupon box on this page.
nbwt_country_topstring[] $codesCountries pinned to the top of the country lists.
nbwt_gulf_address_localearray $localeThe Gulf address labels and rules.
nbwt_spl_hourly_limitint $maxSaudi short address lookups per hour. Default 500.
nbwt_trust_iconsarray $iconsPayment icon URLs by method key.
nbwt_optin_after_accountbool $moveWhether newsletter checkboxes move after the account fields.
nbwt_optin_providersarray $listPlugins the newsletter checkbox adds contacts to.
nbwt_wpsc_font_sizestring $sizeWP Smart Consent checkbox text size (default 15px).
nbwt_is_funnel_pagebool $funnelWhether this page belongs to a checkout funnel plugin.

Thank-you page#

FilterArgumentsPurpose
nbwt_whatsapp_numberstring $digits, WC_Order or null $orderThe WhatsApp number for an order.
nbwt_order_coursesarray $courses, WC_Order $orderCourses the “Your courses” card links to.
nbwt_order_membershipsarray $list, WC_Order $orderMemberships the page shows.
nbwt_membership_namestring $name, string $plugin, int $idA membership’s name.
nbwt_member_urlstring $urlWhere Go to your member area leads.

Integrations and tracking#

FilterArgumentsPurpose
nbwt_partner_pluginsarray $pluginsThird-party plugins listed on the Integrations tab, by group.
nbwt_trackersarray $listTracking plugins that get cart events.
nbwt_track_itemarray $item, WC_Product $productThe item data sent with cart events.

Examples#

// Lock gift wrap items: no quantity change, no remove.
add_filter( 'nbwt_cart_item_lock', function ( $lock, $key, $item ) {
	if ( ! empty( $item['acme_gift_wrap'] ) ) {
		$lock['qty']    = false;
		$lock['remove'] = false;
	}
	return $lock;
}, 10, 3 );

// Refresh a points badge in the header with the mini cart.
add_filter( 'nbwt_mini_cart_fragments', function ( $fragments ) {
	$fragments['span.acme-points-badge'] = '<span class="acme-points-badge">' . (int) acme_cart_points() . '</span>';
	return $fragments;
} );