This commit is contained in:
Mykyta Synelnikov
2024-09-25 22:50:36 +03:00
parent 50b82b1d47
commit 6d99694045
+5
View File
@@ -4299,6 +4299,11 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$data = $this->get_field( $key );
}
// Invalid field data.
if ( ! is_array( $data ) ) {
return '';
}
//hide if empty type
if ( ! array_key_exists( 'type', $data ) || empty( $data['type'] ) ) {
return '';