fc_checkout_sidebar_attributes
Type: Filter
Filters the HTML attributes of the checkout sidebar.
Signature
apply_filters( 'fc_checkout_sidebar_attributes', $sidebar_attributes );
Parameters
| Name | Type | Description |
|---|---|---|
$sidebar_attributes | array | Sidebar attributes. |
Since
1.2.0
Source: inc/checkout-steps.php
Examples
add_filter( 'fc_checkout_sidebar_attributes',
/**
* Add custom attributes to checkout sidebar.
*
* @param array $sidebar_attributes Sidebar attributes.
* @return array Filtered value.
*/
function( $sidebar_attributes ) {
$sidebar_attributes['data-custom'] = 'custom-value';
},
10
);