fc_after_substep_fields_{substep_id}
Type: Action
Fires after the fields inside a checkout substep.
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_after_substep_fields_contactfc_after_substep_fields_shipping_addressfc_after_substep_fields_shipping_methodfc_after_substep_fields_order_notesfc_after_substep_fields_billing_addressfc_after_substep_fields_paymentfc_after_substep_fields_coupon_codes
Signature
do_action( 'fc_after_substep_fields_{substep_id}', $step_id, $substep_id, $collapsible, $context );
Parameters
| Name | Type | Description |
|---|---|---|
$step_id | string | Checkout step ID. |
$substep_id | string | Checkout substep ID. |
$collapsible | bool | Whether the substep fields section is collapsible. |
$context | string | Context in which the hook runs. Default checkout. |
Since
3.1.3
Source: inc/checkout-steps.php
Examples
In fc_after_substep_fields_{substep_id}, shipping_methods replaces {substep_id}.
add_action( 'fc_after_substep_fields_shipping_methods',
/**
* Add extra content after the sub-step contents.
*
* @param string $step_id Checkout step ID.
* @param string $substep_id Checkout substep ID.
* @param bool $collapsible Whether the substep fields section is collapsible.
* @param string $context Context in which the hook runs. Default checkout.
*/
function( $step_id, $substep_id, $collapsible, $context ) {
echo '<div>Custom content after sub-step fields.</div>';
},
10,
4
);