Filters

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

Product Loop

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' );

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 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' );

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 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: September 9th, 2020


Related Articles

Scroll to Top

Download

Download Page Builder Framework and be the first to get informed about new features & updates!

OR

Get 10% off our Premium Add-On (yearly plan).
Coupon Code to enter during checkout: 10OFF View Pricing