Skip to main content

fc_output_custom_styles

Type: Filter

Filters the custom CSS output for the checkout design.

Signature​

apply_filters( 'fc_output_custom_styles', $value );

Parameters​

NameTypeDescription
$valuestringValue to filter. Default empty string.

Since​

  • 1.4.2

Source: inc/design-templates.php

Examples​

add_filter( 'fc_output_custom_styles',
/**
* Add custom CSS to checkout page.
*
* @param string $value Value to filter. Default empty string.
* @return string Filtered value.
*/
function( $value ) {
$value .= '
.fc-custom-class {
width: 100%;
}
';
return $value;
},
10
);