Filters

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 wpbf_woo_custom_cart_icon() {
    return '<i class="wpbff wpbff-bag"></i>';
}
add_filter( 'wpbf_woo_menu_item_icon', 'wpbf_woo_custom_cart_icon' );

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 wpbf_woo_custom_out_of_stock_message() {
    return 'Currently Unavailable!';
}
add_filter( 'wpbf_woo_loop_out_of_stock_string', 'wpbf_woo_custom_out_of_stock_message' );

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 wpbf_woo_custom_menu_item_title() {
    return 'Basket';
}
add_filter( 'wpbf_woo_menu_item_title', 'wpbf_woo_custom_menu_item_title' );

Premium Add-On

Filter: wpbf_woo_menu_item_label

This filter lets you replace the “Cart” text for the WooCommerce Cart Menu Item.

Default: Cart

function wpbf_woo_custom_menu_item_label() {
    return 'Basket';
}
add_filter( 'wpbf_woo_menu_item_label', 'wpbf_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 wpbf_woo_custom_menu_item_separator() {
    return '|';
}
add_filter( 'wpbf_woo_menu_item_separator', 'wpbf_woo_custom_menu_item_separator' );

Filter: wpbf_woo_quick_view_label

This filter lets you replace the “Quick View” message on shop/archive pages.

Default: Quick View

function wpbf_woo_custom_quick_view_label() {
    return 'More Details';
}
add_filter( 'wpbf_woo_quick_view_label', 'wpbf_woo_custom_quick_view_label' );

Last updated on: January 16th, 2020

Scroll to Top

Black Friday Sale

Enter your email address and be the first to get notified when our Black Friday sale begins!

Download

Enter your email address and be the first to get informed about new features & updates!

Download

Enter your email address and be the first to get informed about new features & updates!