abstracts
6 years ago
admin
6 years ago
export
6 years ago
fields
6 years ago
interfaces
8 years ago
libraries
7 years ago
log-handlers
8 years ago
shortcodes
6 years ago
templates
7 years ago
class-everest-forms.php
6 years ago
class-evf-ajax.php
6 years ago
class-evf-autoloader.php
7 years ago
class-evf-background-updater.php
7 years ago
class-evf-cache-helper.php
8 years ago
class-evf-deprecated-action-hooks.php
7 years ago
class-evf-deprecated-filter-hooks.php
7 years ago
class-evf-emails.php
7 years ago
class-evf-fields.php
7 years ago
class-evf-form-block.php
6 years ago
class-evf-form-handler.php
6 years ago
class-evf-form-task.php
6 years ago
class-evf-forms-features.php
7 years ago
class-evf-frontend-scripts.php
7 years ago
class-evf-install.php
6 years ago
class-evf-integrations.php
7 years ago
class-evf-log-levels.php
8 years ago
class-evf-logger.php
8 years ago
class-evf-post-types.php
7 years ago
class-evf-privacy.php
7 years ago
class-evf-session-handler.php
7 years ago
class-evf-shortcodes.php
7 years ago
class-evf-smart-tags.php
7 years ago
class-evf-template-loader.php
7 years ago
class-evf-validation.php
8 years ago
evf-conditional-functions.php
7 years ago
evf-core-functions.php
6 years ago
evf-deprecated-functions.php
7 years ago
evf-entry-functions.php
6 years ago
evf-formatting-functions.php
7 years ago
evf-notice-functions.php
6 years ago
evf-template-functions.php
7 years ago
evf-template-hooks.php
7 years ago
evf-update-functions.php
6 years ago
class-evf-forms-features.php
56 lines
| 1 | <?php |
| 2 | /** |
| 3 | * EverestForms features |
| 4 | * |
| 5 | * @package EverestForms\Admin |
| 6 | * @since 1.2.0 |
| 7 | */ |
| 8 | |
| 9 | defined( 'ABSPATH' ) || exit; |
| 10 | |
| 11 | /** |
| 12 | * Features Class. |
| 13 | */ |
| 14 | class EVF_Forms_Features { |
| 15 | |
| 16 | /** |
| 17 | * Constructor. |
| 18 | */ |
| 19 | public function __construct() { |
| 20 | add_filter( 'everest_forms_fields', array( $this, 'form_fields' ) ); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Load additional fields available in the Pro version. |
| 25 | * |
| 26 | * @param array $fields Registered form fields. |
| 27 | * @return array |
| 28 | */ |
| 29 | public function form_fields( $fields ) { |
| 30 | $pro_fields = array( |
| 31 | 'EVF_Field_File_Upload', |
| 32 | 'EVF_Field_Image_Upload', |
| 33 | 'EVF_Field_Hidden', |
| 34 | 'EVF_Field_Phone', |
| 35 | 'EVF_Field_Password', |
| 36 | 'EVF_Field_HTML', |
| 37 | 'EVF_Field_Title', |
| 38 | 'EVF_Field_Signature', |
| 39 | 'EVF_Field_Address', |
| 40 | 'EVF_Field_Country', |
| 41 | 'EVF_Field_Payment_Single', |
| 42 | 'EVF_Field_Payment_Radio', |
| 43 | 'EVF_Field_Payment_Checkbox', |
| 44 | 'EVF_Field_Payment_Total', |
| 45 | 'EVF_Field_Credit_Card', |
| 46 | 'EVF_Field_Rating', |
| 47 | 'EVF_Field_Likert', |
| 48 | 'EVF_Field_Scale_Rating', |
| 49 | ); |
| 50 | |
| 51 | return array_merge( $fields, $pro_fields ); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | new EVF_Forms_Features(); |
| 56 |