enabled = true; $this->title = __( 'Contact Form', 'weforms' ); $this->description = __( 'Create a simple contact form for your site.', 'weforms' ); $this->image = WEFORMS_ASSET_URI . '/images/form-template/contact.png'; $this->category = 'default'; } /** * Get the form fields * * @return array */ public function get_form_fields() { $all_fields = $this->get_available_fields(); $form_fields = [ array_merge( $all_fields['name_field']->get_field_props(), [ 'required' => 'yes', 'name' => 'name', ] ), array_merge( $all_fields['email_address']->get_field_props(), [ 'required' => 'yes', 'name' => 'email', ] ), array_merge( $all_fields['textarea_field']->get_field_props(), [ 'required' => 'yes', 'label' => __( 'Message', 'weforms' ), 'name' => 'message', ] ), ]; return $form_fields; } }