fc_pro_order_received_sidebar_attributes
Type: Filter
Filters the HTML attributes for order received sidebar.
Signature
apply_filters( 'fc_pro_order_received_sidebar_attributes', $sidebar_attributes );
Parameters
| Name | Type | Description |
|---|---|---|
$sidebar_attributes | array | HTML attributes for the sidebar element. |
Since
1.3.0
Source: inc/order-received-page.php
Examples
add_filter( 'fc_pro_order_received_sidebar_attributes',
/**
* Add custom data attribute to order received sidebar.
*
* @param array $sidebar_attributes HTML attributes for the sidebar element.
* @return array Filtered value.
*/
function( $sidebar_attributes ) {
$sidebar_attributes['custom-sidebar'] = 'received';
return $sidebar_attributes;
},
10
);