admin_form_before(); $output .= $this->admin_form_start(); $output .= $this->default_fields(); $widget_saved_values = $this->get_settings(); $output .= Textarea::get([ 'name' => 'raw_html_data', 'label' => __('Raw HTML'), 'value' => $widget_saved_values['raw_html_data'] ?? null, ]); $output .= $this->admin_form_submit_button(); $output .= $this->admin_form_end(); $output .= $this->admin_form_after(); return $output; } /** * frontend_render * this method must have to implement by all widget to render frontend widget content * @since 1.0.0 * */ public function frontend_render(): string { $all_settings = $this->get_settings(); $raw_html_data = $all_settings['raw_html_data'] ?? ''; return <<