fc_checkout_contact_step_field_ids
Type: Filter
Filters the field keys displayed in the contact step.
Signature
apply_filters( 'fc_checkout_contact_step_field_ids', $get_default_contact_step_display_field_ids );
Parameters
| Name | Type | Description |
|---|---|---|
$get_default_contact_step_display_field_ids | mixed | Get default contact step display field ids. |
Since
1.2.0
Source: inc/checkout-steps.php
Examples
add_filter( 'fc_checkout_contact_step_field_ids',
/**
* Add custom field to contact step.
*
* @param mixed $get_default_contact_step_display_field_ids Get default contact step display field ids.
* @return mixed Filtered value.
*/
function( $get_default_contact_step_display_field_ids ) {
$get_default_contact_step_display_field_ids[] = 'custom_field';
return $get_default_contact_step_display_field_ids;
},
10
);