Menu Item
Filter: wpbf_woo_menu_item_icon
This filter lets you replace the Menu Item Icon with your icon of choice.
Default: Cart Icon (<i class=”wpbff wpbff-bag”></i>)
function prefix_woo_custom_cart_icon() {
return '';
}
add_filter( 'wpbf_woo_menu_item_icon', 'prefix_woo_custom_cart_icon' );
Filter: wpbf_woo_menu_item_title
This filter lets you replace the title for the WooCommerce Cart Menu Item (appears on hover).
Default: Shopping Cart
function prefix_woo_custom_menu_item_title() { return 'Basket'; } add_filter( 'wpbf_woo_menu_item_title', 'prefix_woo_custom_menu_item_title' );
Product Loop
Filter: wpbf_woo_product_loop_wrapper
Some page builders like Elementor apply their own styles to the WooCommerce product loop. This interferes with Page Builder Frameworks custom loop wrappers that we have in place.
When a page or archive is built with Elementor, we automatically remove our wrappers so that Elementor can take over the product loop. We also remove our wrappers by default from all Custom Sections.
You would want to do this filter for instance if you are using a page builder and render a product loop on pages other than the shop or shop archive page – and only for compatibility reasons.
When using this filter, make sure it applies to only a specific post or page. Applying this filter globally will break the design of Page Builder Frameworks shop pages.
Default: true
function prefix_woo_remove_product_loop_wrappers() { // Stop if we are not on page 324. if ( ! is_page( '324' ) ) { return true; } return false; } add_filter( 'wpbf_woo_product_loop_wrapper', 'prefix_woo_remove_product_loop_wrappers' );
Filter: wpbf_woo_loop_out_of_stock_string
This filter lets you replace the “Out of Stock” message on shop/archive pages.
Default: Out of Stock
function prefix_woo_custom_out_of_stock_message() { return 'Currently Unavailable!'; } add_filter( 'wpbf_woo_loop_out_of_stock_string', 'prefix_woo_custom_out_of_stock_message' );
Premium Add-On
Menu Item
Filter: wpbf_woo_menu_item_label
This filter lets you replace the “Cart” text for the WooCommerce Cart Menu Item.
Default: Cart
function prefix_woo_custom_menu_item_label() { return 'Basket'; } add_filter( 'wpbf_woo_menu_item_label', 'prefix_woo_custom_menu_item_label' );
Filter: wpbf_woo_menu_item_separator
This filter lets you replace the separator that appears between the total cart amount & cart icon inside the Cart Menu Item.
Default: –
function prefix_woo_custom_menu_item_separator() { return '|'; } add_filter( 'wpbf_woo_menu_item_separator', 'prefix_woo_custom_menu_item_separator' );
Product Loop
Filter: wpbf_woo_quick_view_label
This filter lets you replace the “Quick View” message on shop/archive pages.
Default: Quick View
function prefix_woo_custom_quick_view_label() { return 'More Details'; } add_filter( 'wpbf_woo_quick_view_label', 'prefix_woo_custom_quick_view_label' );