/** * Enqueues necessary stylesheets and scripts for this widget. * * @since 0.5.0 */ public function enqueue_assets() { //TODO: remove this, it must happen in WidgetHandler $_fields = array(); foreach ($this->get_children() as $section) { foreach ($section->get_children() as $field) { $_fields[] = $field->_field; } } FieldManager::enqueue_assets($_fields); }