fc_checkout_progress_bar_attributes
Type: Filter
Filters the HTML attributes of the checkout progress bar.
Signature
apply_filters( 'fc_checkout_progress_bar_attributes', $progress_bar_attributes );
Parameters
| Name | Type | Description |
|---|---|---|
$progress_bar_attributes | array | Progress bar attributes. |
Since
1.2.0
Source: inc/checkout-steps.php
Examples
add_filter( 'fc_checkout_progress_bar_attributes',
/**
* Add custom attributes to progress bar.
*
* @param array $progress_bar_attributes Progress bar attributes.
* @return array Filtered value.
*/
function( $progress_bar_attributes ) {
// Add custom class to existing classes
$progress_bar_attributes['class'] .= ' custom-progress-bar';
return $progress_bar_attributes;
},
10
);