Skip to content

Commit 1138856

Browse files
committed
Field types array now can be set using the class method. Helpful for fields loaded after the initial array is set and the filter has been run.
1 parent 05409b9 commit 1138856

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/wpum-fields/class-wpum-fields.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ function get_registered_field_types() {
107107
return $this->fields;
108108
}
109109

110+
public function set_registered_field_types( $fields ) {
111+
$this->fields = $fields;
112+
}
113+
110114
/**
111115
* Retrieve a list of the registered field types names.
112116
*

0 commit comments

Comments
 (0)