文件操作 - class-vendor-contact-form.php
返回文件管理
返回主菜单
删除本文件
文件: /root/Desktop/OLD/plugin-wordpress/weforms/includes/templates/dokan/class-vendor-contact-form.php
编辑文件内容
<?php /** * Vendor contact form template */ class WeForms_Vendor_Contact_Form extends WeForms_Form_Template { public function __construct() { parent::__construct(); $this->enabled = true; $this->title = __( 'Vendor Contact Form', 'weforms' ); $this->description = __( 'Create a vendor 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' => 'seller_name', 'label' => 'Seller Name', 'hide_subs' => 'true', 'auto_populate' => 'yes', ] ), array_merge( $all_fields['email_address']->get_field_props(), [ 'required' => 'yes', 'name' => 'email', 'auto_populate' => 'yes', ] ), array_merge( $all_fields['text_field']->get_field_props(), [ 'required' => 'yes', 'name' => 'subject', 'label' => 'Subject', ] ), array_merge( $all_fields['textarea_field']->get_field_props(), [ 'required' => 'yes', 'label' => __( 'Message', 'weforms' ), 'name' => 'message', ] ), ]; return $form_fields; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件