PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.14
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.14
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
weforms / includes / fields / class-fields-pro.php

class-fields-pro.php in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.6.14, at includes/fields/class-fields-pro.php

47 lines 911 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Pro fields wrapper class
5 */
6 class WeForms_Form_Field_Pro extends WeForms_Field_Contract {
7
8 /**
9 * Render the text field
10 *
11 * @param array $field_settings
12 * @param int $form_id
13 *
14 * @return void
15 */
16 public function render( $field_settings, $form_id ) {
17 echo esc_html_e( 'This is a premium field. You need to upgrade.', 'weforms' );
18 }
19
20 /**
21 * Check if it's a pro feature
22 *
23 * @return bool
24 */
25 public function is_pro() {
26 return true;
27 }
28
29 /**
30 * Get field options setting
31 *
32 * @return array
33 */
34 public function get_options_settings() {
35 return __return_empty_array();
36 }
37
38 /**
39 * Get the field props
40 *
41 * @return array
42 */
43 public function get_field_props() {
44 return __return_empty_array();
45 }
46 }
47