Skip to main content

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_items
  • fc_pro_cart_section_title_coupon_code
  • fc_pro_cart_section_title_cross_sell_display
  • fc_pro_cart_section_title_free-gifts-for-woocommerce_display
  • fc_pro_cart_section_title_gift_card_code
  • fc_pro_cart_section_title_shipping
  • fc_pro_cart_section_title_woodmart-free-gifts_display

Signature​

apply_filters( 'fc_pro_cart_section_title_{section_id}', $section_title );

Parameters​

NameTypeDescription
$section_titlestringThe 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
);