Skip to main content

fc_expansible_section_toggle_label_add_optional_text

Type: Filter

Filters whether every expansible section toggle label includes the "optional" text.

Signature​

apply_filters( 'fc_expansible_section_toggle_label_add_optional_text', $label );

Parameters​

NameTypeDescription
$labelboolLabel text. Default true.

Since​

  • 2.0.2

Source: inc/checkout-hide-optional-fields.php

Examples​

add_filter( 'fc_expansible_section_toggle_label_add_optional_text',
/**
* Remove optional text from all toggle labels.
*
* @param bool $label Label text. Default true.
* @return bool Filtered value.
*/
function( $label ) {
return false;
},
10
);