# weforms/1.1.1/includes/fields/class-fields-pro.php

weForms – Easy Drag &amp; Drop Contact Form Builder For WordPress, version 1.1.1. 47 lines.

- Page: https://pluginprobe.com/plugins/weforms/1.1.1/code/includes/fields/class-fields-pro.php
- Raw: https://pluginprobe.com/plugins/weforms/1.1.1/raw/includes/fields/class-fields-pro.php
- Modified: 2017-10-02T17:13:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/weforms/1.1.1/code/includes/fields/class-fields-pro.php#L10-L20`.

```php
<?php

/**
 * Pro fields wrapper class
 */
class WeForms_Form_Field_Pro extends WeForms_Field_Contract {

    /**
     * Render the text field
     *
     * @param  array  $field_settings
     * @param  integer  $form_id
     *
     * @return void
     */
    public function render( $field_settings, $form_id ) {
        echo __( 'This is a premium field. You need to upgrade.', 'weforms' );
    }

    /**
     * Check if it's a pro feature
     *
     * @return boolean
     */
    public function is_pro() {
        return true;
    }

    /**
     * Get field options setting
     *
     * @return array
     */
    public function get_options_settings() {
        return __return_empty_array();
    }

    /**
     * Get the field props
     *
     * @return array
     */
    public function get_field_props() {
        return __return_empty_array();
    }
}

```
