File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,17 @@ Field data needs to be "returned" by certain methods. These methods are simple:
11
11
``` php
12
12
class Elementor_Test_Field extends \ElementorPro\Modules\Forms\Fields\Field_Base {
13
13
14
- public function get_name(): string {
14
+ public function get_type() {
15
15
return 'field_name';
16
16
}
17
17
18
- public function get_label(): string {
18
+ public function get_name() {
19
19
return esc_html__( 'My Field Name', 'textdomain' );
20
20
}
21
21
22
22
}
23
23
```
24
24
25
- * ** Field Type** – The ` get_type() ` method returns the field name (id) that will be used in the code.
25
+ * ** Field Type** – The ` get_type() ` method returns the field id that will be used in the code.
26
26
27
27
* ** Field Name** – The ` get_name() ` method returns the field label that will be displayed to the user.
You can’t perform that action at this time.
0 commit comments