Filter
rpress_show_billing_fields
On this page
Filters whether billing address fields are shown.
Runs in rpress_show_billing_fields(). The default is the enable_billing_fields setting. The result controls billing fields in the checkout address step and on the order details screen.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$enable_fields | bool|mixed | Value of the enable_billing_fields setting. |
Return value#
bool. True to show billing fields.
Example#
function my_hide_billing_fields( $enable_fields ) {
return false;
}
add_filter( 'rpress_show_billing_fields', 'my_hide_billing_fields' );
Source#
Applied in:
includes/tax-functions.php(line 217), inrpress_show_billing_fields()
See also#
Was this page helpful?
