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 @@ -25,7 +25,7 @@ function() {
25
25
/**
26
26
* Initializes the field.
27
27
*/
28
- function __construct () {
28
+ public function __construct () {
29
29
$ this ->name = 'unique_id ' ;
30
30
$ this ->label = 'Unique ID ' ;
31
31
$ this ->category = 'basic ' ;
@@ -38,7 +38,7 @@ function __construct() {
38
38
*
39
39
* @param array $field The field data.
40
40
*/
41
- function render_field ( $ field ) {
41
+ public function render_field ( $ field ) {
42
42
printf ( '<input type="text" name="%s" value="%s" readonly> ' ,
43
43
esc_attr ( $ field ['name ' ] ),
44
44
esc_attr ( $ field ['value ' ] )
@@ -56,7 +56,7 @@ function render_field( $field ) {
56
56
*
57
57
* @return string The filtered value.
58
58
*/
59
- function update_value ( $ value , $ post_id , $ field ) {
59
+ public function update_value ( $ value , $ post_id , $ field ) {
60
60
61
61
if ( ! empty ( $ value ) ) {
62
62
return $ value ;
You can’t perform that action at this time.
0 commit comments