1. Home
  2. Filters
  3. Filter reference: wpforms_field_credit_card_enable

apply_filters( 'wpforms_field_credit_card_enable', $enable_cc )

Determines whether Credit Card field will be displayed in form builder.

Description

The wpforms_field_credit_card_enable filter is applied when the form builder loads. Though the Credit Card field will by default only be available when the Stripe addon is active, this filter can be used to enable the Credit Card field without any addon.

Parameters

$enable_cc
(bool) (Required) Determines whether field will display, default is false (do not display)

Source

wpforms/pro/includes/fields/class-payment-credit-card.php

Updated on May 14, 2018

Was this article helpful?