Skip to main content

fc_checkout_html_custom_attributes

Type: Filter

Filters custom attributes added to the checkout root HTML element.

Signature​

apply_filters( 'fc_checkout_html_custom_attributes', $html );

Parameters​

NameTypeDescription
$htmlarrayHTML markup. Default empty array.

Since​

  • 3.1.9

Source: templates/compat/themes/dt-the7/checkout-page-template/checkout/page-checkout-header.php

Examples​

add_filter( 'fc_checkout_html_custom_attributes',
/**
* Add custom HTML attributes to checkout page.
*
* @param array $html HTML markup. Default empty array.
* @return array Filtered value.
*/
function( $html ) {
$html['custom-attribute'] = 'custom-checkout-attribute';
return $html;
},
10
);