fc_checkout_html_custom_attributes

Back to list of all filter and action hooks for Fluid Checkout Lite.

Description #

Adds custom HTML attributes to the checkout page HTML element.

Parameters #

  • $attributes (array) Array of HTML attributes as key-value pairs. Defaults to array().

Examples #

/**
 * Add custom HTML attributes to checkout page
 */
function add_custom_html_attributes( $attributes ) {
    $attributes['custom-attribute'] = 'custom-checkout-attribute';
    return $attributes;
}
add_filter( 'fc_checkout_html_custom_attributes', 'add_custom_html_attributes', 10 );

What are your feelings

Updated on December 15, 2025