Skip to main content

fc_substep_{substep_id}_attributes

Type: Filter

Filters additional attributes for the substep output, allowing other plugins to add or modify attributes.

The dynamic portion of the hook name, $substep_id, refers to the checkout substep ID. Additional hook names are created for substeps registered by other plugins. Possible hook names include:

  • fc_substep_contact_attributes
  • fc_substep_shipping_address_attributes
  • fc_substep_shipping_method_attributes
  • fc_substep_order_notes_attributes
  • fc_substep_billing_address_attributes
  • fc_substep_payment_attributes
  • fc_substep_coupon_codes_attributes

Signature​

apply_filters( 'fc_substep_{substep_id}_attributes', $additional_attributes, $context );

Parameters​

NameTypeDescription
$additional_attributesarrayAdditional HTML attributes to add to the substep element.
$contextstringContext in which the substep is being output for. Defaults to checkout.

Since​

  • 1.3.1

Source: inc/checkout-steps.php