'key', 'type' => 'text', 'label' => __('Field name', 'zadex'), 'default' => '', 'dynamicOptions' => true], ]; } public function group(): string { return $this->name(); } public function render(array $settings, Context $ctx) { $key = isset($settings['key']) && is_string($settings['key']) ? trim($settings['key']) : ''; if ($key === '' || !function_exists(static::required_function())) { return ''; } return self::field_value($this->field($key, $ctx)); } }