fc_billing_address_substep_position_args
Type: Filter
Filters the step and priority used to place the billing address substep.
Signature
apply_filters( 'fc_billing_address_substep_position_args', $value );
Parameters
| Name | Type | Description |
|---|---|---|
$value | array | Value to filter. |
Since
4.0.0
Source: inc/checkout-steps.php
Examples
When calling add_filter(), the priority must be higher than 10 to ensure your custom filter takes precedence over any default or lower-priority filters attached to the hook fc_billing_address_substep_position_args.
add_filter( 'fc_billing_address_substep_position_args',
/**
* Customize billing address substep position.
*
* @param array $value Value to filter.
* @return array Filtered value.
*/
function( $value ) {
// Position billing after additional notes (value 100) in shipping step
$value['substep_after_shipping'] = array( 'step_id' => 'shipping', 'priority' => 150 );
return $value;
},
20
);