打开门店表单。php
<div class="dokan-form-group">
<label class="dokan-w3 dokan-control-label" for="dokan_store_name"><?php esc_html_e(\'Store Name\', \'dokan-lite\'); ?></label>
<div class="dokan-w5 dokan-text-left">
<input id="dokan_store_name" required value="<?php echo esc_attr($storename); ?>" name="dokan_store_name" placeholder="<?php esc_attr_e(\'store name\', \'dokan-lite\'); ?>" class="dokan-form-control" type="text">
</div>
</div>
<!-- TODO -->
<div class="dokan-form-group">
<label class="dokan-w3 dokan-control-label" for="dokan_store_parent_name"><?php esc_html_e(\'Store Parent Name\', \'dokan-lite\'); ?></label>
<div class="dokan-w5 dokan-text-left">
<input id="dokan_store_parent_name" required value="<?php echo esc_attr($storeparentname); ?>" name="dokan_store_parent_name" placeholder="<?php esc_attr_e(\'store parent name\', \'dokan-lite\'); ?>" class="dokan-form-control" type="text">
</div>
</div>
在当前版本的第134行复制此字段
将此添加到第13行
$storeparentname = isset($profile_info[\'store_parent_name\']) ?
$profile_info[\'store_parent_name\'] : \'\'; //
然后在37处添加此行
$storename = sanitize_text_field($get_data[\'dokan_store_name\']); // WPCS: CSRF ok, Input var ok.
// TODO
$storeparentname = sanitize_text_field($get_data[\'dokan_store_parent_name\']); // WPCS: CSRF ok, Input var ok.
然后在模板设置中。php在第626行添加thid行
update_user_meta($store_id, \'dokan_profile_settings\', $dokan_settings);
update_user_meta($store_id, \'dokan_store_name\', $dokan_settings[\'store_name\']);
然后将这一行添加到类注册中。php在第160行之后
update_user_meta( $user_id, \'dokan_store_name\', $dokan_settings[\'store_name\'] );
update_user_meta( $user_id, \'dokan_store_parent_name\', $dokan_settings[\'store_parent_name\'] );