Title: Dapre Custom Fields Tools
Author: Giulio Daprela
Published: <strong>2021 年 3 月 18 日</strong>
Last modified: 2021 年 3 月 18 日

---

搜索插件

![](https://ps.w.org/dapre-custom-fields-tools/assets/banner-772x250.png?rev=2498463)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/dapre-custom-fields-tools/assets/icon-256x256.png?rev=2498463)

# Dapre Custom Fields Tools

 作者：[Giulio Daprela](https://profiles.wordpress.org/daprela/)

[下载](https://downloads.wordpress.org/plugin/dapre-custom-fields-tools.5.3.1.zip)

 * [详情](https://cn.wordpress.org/plugins/dapre-custom-fields-tools/#description)
 * [评价](https://cn.wordpress.org/plugins/dapre-custom-fields-tools/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/dapre-custom-fields-tools/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/dapre-custom-fields-tools/#developers)

 [支持](https://wordpress.org/support/plugin/dapre-custom-fields-tools/)

## 描述

This plugin is a ‘swiss army knife’ of custom fields. It allows you to manipulate
them to make it easy the testing and debugging of applications.

This plugin was built in a moment of desperation when I couldn’t access phpMyAdmin
in a mu website.
 I absolutely needed to manipulate the custom fields for testing
and debugging, version 1.0 was up in 4 hours. In the following months I realized
how useful the plugin was and couldn’t work anymore without it. It had become part
of my standard toolset.

Features:
 1 Read/write/delete options, user fields and post fields. 2 Populate 
the field with an empty array. 3 Insert a date string and translate it into a timestamp
or vice versa to emulate specific dates. 4 Change name to a field. 5 Copy any field’s
content to any other field (for example, option to user field) even of a different
name.

You can contribute to the plugin or just study the code on the [Github repo](https://github.com/daprela/dapre-custom-fields-tools/).

## 安装

 1. Visit the plugins page within your dashboard and select ‘Add New’;
 2. Search for ‘Dapre Custom Fields Tools’;
 3. Activate the plugin from your Plugins page;

## 评价

![](https://secure.gravatar.com/avatar/b96b0d15a783789395cdef44e063be01558ee823a2cb8814aeaab245ba33a6cd?
s=60&d=retro&r=g)

### 󠀁[Does what it says on the box](https://wordpress.org/support/topic/does-what-it-says-on-the-box-81/)󠁿

 [Leo Gopal](https://profiles.wordpress.org/leogopal/) 2021 年 3 月 18 日

Works exceptionally well to assist in debugging and testing of custom fields in 
WordPress. Does it well, and saves you time.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/dapre-custom-fields-tools/reviews/)

## 贡献者及开发者

「Dapre Custom Fields Tools」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Giulio Daprela ](https://profiles.wordpress.org/daprela/)

[帮助将「Dapre Custom Fields Tools」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/dapre-custom-fields-tools)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/dapre-custom-fields-tools/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/dapre-custom-fields-tools/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/dapre-custom-fields-tools/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/dapre-custom-fields-tools/)。

## 更新日志

#### 5.3.1

 * Fixed an error in casting a return value.

#### 5.3.0

 * Refactored the UI of the meta fields tables to use REACT.

#### 5.2.0

 * Meta fields rows can now be added and removed dynamically.
 * Bug fixing.

#### 5.1.1

 * Fixed visualization bug in first row of meta fields.

#### 5.1.0

 * Improved UI

#### 5.0.0

 * Moved from AJAX to REST API.
 * Moved from JQuery to vanilla JavaScript.

#### 4.6.1

 * Updated npm packages versions.
 * Built distributable file.

#### 4.6.0

 * Refactored CSS to use grid and flexbox instead of tables.
 * Refactored CSS to use BEVM coding principles.
 * Refactored templates to comply with changes in CSS.

#### 4.5.0

 * Added Gulp workflow.
 * Refactored code and created new plugin structure to meet the new workflow needs.
 * Refactored JavaScript and removed all inline events left.

#### 4.4.0

 * refactored JavaScript to remove all inline events.
 * bugfix: plugin left the delete option enabled with non existing meta fields.

#### 4.3.0

 * made all strings translatable and escaped output.

#### 4.2.3

 * added filter input to avoid accessing $_POST directly.

#### 4.2.2

 * Initialized variables containing CSS classes to remove warnings.

#### 4.2.1

 * Renamed constant PLUGIN_PATH with PLUGIN_DIRPATH for better clarity.

#### 4.2.0

 * Minor code refactoring. Abstracted some common methods.

#### 4.1.1

 * Moved conditionals from templates to classes.

#### 4.1.0

 * Added PHP version check. Minimum version required is PHP 7.x

#### 4.0.0

 * Introduced classes for option fields, user fields and post fields
 * Refactored the previous options array. Now there are three arrays instead of 
   one
 * It is now possible to also read/write base fields for user fields and post fields(
   fields that are in the wp_users table and wp_posts table)
 * Improved error handling where the user get an error after trying to write on 
   a meta field
 * Added colorbox library

#### 3.4.0

 * Refactored settings page to make html code cleaner and get ready for the next
   evolution

#### 3.3

 * Added copy boxes to allow copy any field to any field even of a different type

#### 3.2

 * Added rename option box

#### 3.1

 * Moved the three boxes into tabs
 * Switch tabs through JS

#### 3.0

 * converted plugin to AJAX

#### 2.0

 * Added actions
 * Added checkbox to toggle date string/timestamp
 * Possible to add an empty array

#### 1.0

 * First version, very basic.

## 额外信息

 *  版本 **5.3.1**
 *  最后更新：**5 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0.0 或更高版本 **
 *  已测试的最高版本为 **5.7.0**
 *  PHP 版本 ** 7.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/dapre-custom-fields-tools/)
 * 标签
 * [debug](https://cn.wordpress.org/plugins/tags/debug/)[developer](https://cn.wordpress.org/plugins/tags/developer/)
   [utility](https://cn.wordpress.org/plugins/tags/utility/)
 *  [高级视图](https://cn.wordpress.org/plugins/dapre-custom-fields-tools/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/dapre-custom-fields-tools/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/dapre-custom-fields-tools/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/dapre-custom-fields-tools/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/dapre-custom-fields-tools/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/dapre-custom-fields-tools/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dapre-custom-fields-tools/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/dapre-custom-fields-tools/reviews/)

## 贡献者

 *   [ Giulio Daprela ](https://profiles.wordpress.org/daprela/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/dapre-custom-fields-tools/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://giuliodaprela.com/)