Skip to content
Docs
Get RestroPress

Filter

rpress_show_billing_fields

Updated
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#

ParameterTypeDescription
$enable_fieldsbool|mixedValue 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), in rpress_show_billing_fields()

See also#

Was this page helpful?