Back to list of all filter and action hooks for Fluid Checkout PRO.
Description #
This filter allows you to add custom HTML attributes to the cart page <body> element.
Parameters #
$attributes(array) Array of HTML attributes.
Example #
/**
* Add custom data attribute to cart body element
*/
function add_cart_body_attributes( $attributes ) {
$attributes['cart-custom-data'] = 'custom-data';
return $attributes;
}
add_filter( 'fc_pro_cart_body_custom_attributes', 'add_cart_body_attributes', 10, 1 );
