fc_pro_cart_section_title_{section_id}
Type: Filter
Filters the title of a cart section.
The dynamic portion of the hook name, $section_id, is the cart section ID. Possible hook names include:
fc_pro_cart_section_title_cart_itemsfc_pro_cart_section_title_coupon_codefc_pro_cart_section_title_cross_sell_displayfc_pro_cart_section_title_free-gifts-for-woocommerce_displayfc_pro_cart_section_title_gift_card_codefc_pro_cart_section_title_shippingfc_pro_cart_section_title_woodmart-free-gifts_display
Signature
apply_filters( 'fc_pro_cart_section_title_{section_id}', $section_title );
Parameters
| Name | Type | Description |
|---|---|---|
$section_title | string | The section title. |
Since
1.3.0
Source: inc/cart-page.php
Examples
In fc_pro_cart_section_title_{section_id}, cart_items replaces {section_id}.
add_filter( 'fc_pro_cart_section_title_cart_items',
/**
* Customize cart items section title.
*
* @param string $section_title The section title.
* @return string Filtered value.
*/
function( $section_title ) {
return __( 'Your Products', 'text-domain' );
},
10
);