Title: ACF PHP VARS
Author: samjco
Published: <strong>2016 年 3 月 24 日</strong>
Last modified: 2018 年 10 月 4 日

---

搜索插件

![](https://ps.w.org/acf-php-vars/assets/banner-772x250.jpg?rev=1377561)

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

![](https://ps.w.org/acf-php-vars/assets/icon-128x128.png?rev=1951215)

# ACF PHP VARS

 作者：[samjco](https://profiles.wordpress.org/samjco/)

[下载](https://downloads.wordpress.org/plugin/acf-php-vars.zip)

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

 [支持](https://wordpress.org/support/plugin/acf-php-vars/)

## 描述

Finally being able to copy all ACF field variables is here!!!

**Supports ACF PRO!**

This plugin was build for the awesomeness of the [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-fields/)
plugin created by Elliot Condon, so that referencing custom fields is fast and makes
life easier for developers.

You are now able to get a complete list of fields that you’ve created, make adjustments
with the available options, and simply copy-and-paste them right into your theme
template. No more switching back-and-forth screens in order to copy-and-paste field
names into your file. whew!

### Features

 * Easily switch from field names to field IDs.
 * Easily choose between the_field() or get_field() functions to use.
 * Show all fields-group with fields OR just the fields created within the current
   field group section.
 * Show Example field code and decriptions.
 * Works great with ACF PRO

I hope you enjoy this plugin and if it works for you, please add your rating. Your
donations to (https://PayPal.Me/samjco) will help to make this plugin better!

[Demo video:

](https://screencast.com/t/pS9dukeU/

Demo Video | Screencast

“)

_Special thanks to the ACF display plugin._

## 安装

 1. Upload `acf-php-vars.php` to the `/wp-content/plugins/` directory, or install it
    via the WP Plugin repository
 2. 通过WordPress的的“Plugins”菜单激活插件
 3. A new button will show up in the menu of the dashboard called ACF PHP VARS as well
    as shown under Custom Fields menu. If you don’t have the ACF plugin activated, 
    the button will not show up.

## 常见问题

  Why isn’t my button showing up?

Make sure sure you have ACF installed and activated.

  I can see the button, but why can’t I see all my fields?

If this is the case with you, make sure you have custom fields created.

  Will this plugin work with ACF PRO

Yes.

## 评价

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

### 󠀁[Does exactly what it needed!](https://wordpress.org/support/topic/does-exactly-what-it-needed/)󠁿

 [Dave3o3](https://profiles.wordpress.org/dave3o3/) 2016 年 9 月 3 日

Great plugin! Works as intended! But I found some issues. Please see the support
forum. Thanks!

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

### 󠀁[Code Faster!](https://wordpress.org/support/topic/code-faster/)󠁿

 [samjco](https://profiles.wordpress.org/samjco/) 2016 年 9 月 3 日

Coding faster was the goal of the plugin.

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

### 󠀁[Doing my Dev process faster](https://wordpress.org/support/topic/doing-my-dev-process-faster/)󠁿

 [sera2007](https://profiles.wordpress.org/sera2007/) 2016 年 9 月 3 日

Thx for great plugin

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

### 󠀁[Just what I needed!](https://wordpress.org/support/topic/just-what-i-needed-455/)󠁿

 [jirrodglynn](https://profiles.wordpress.org/jirrodglynn/) 2016 年 9 月 3 日

Oh wow, this is going to save me a lot of time with writing out all of those variables!

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

### 󠀁[Pro version ACF](https://wordpress.org/support/topic/pro-version-116/)󠁿

 [ptrv](https://profiles.wordpress.org/ptrv/) 2016 年 9 月 3 日 6 回复

Nice!

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/acf-php-vars/reviews/)

## 贡献者及开发者

「ACF PHP VARS」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ samjco ](https://profiles.wordpress.org/samjco/)

[帮助将「ACF PHP VARS」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/acf-php-vars)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3

 * Moved ACF Theme PHP menu under Custom Fields menu.
 * Added better readability.
 * Added Support for the latest ACF PRO version
 * Added Support to use if using ACF/ACF PRO within a custom plugin.
 * Added WPDB Table prefixing
 * Fixed various issues.

#### 1.2

 * Added additional ACF PHP VARS menu under Custom Fields menu.
 * Added a Quick View box on Field group page so that user can get vars while making
   them.

#### 1.1

 * Added support for ACF PRO!
 * Added notification when ACF or ACF PRO isn’t installed.
 * Added Copy all and copy group buttons for ease of copy and pasting.
 * Fix issue with current plugin dir not referencing correctly.
 * Added 128×128 Icon to assets.

#### 1.0

 * Currently, this is the first version of this plugin and no changes have been 
   made.

## 额外信息

 *  版本 **1.3**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/acf-php-vars/)
 * 标签
 * [acf](https://cn.wordpress.org/plugins/tags/acf/)[advanced custom fields](https://cn.wordpress.org/plugins/tags/advanced-custom-fields/)
   [php](https://cn.wordpress.org/plugins/tags/php/)[template](https://cn.wordpress.org/plugins/tags/template/)
   [theme](https://cn.wordpress.org/plugins/tags/theme/)
 *  [高级视图](https://cn.wordpress.org/plugins/acf-php-vars/advanced/)

## 评级

 4.8 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/acf-php-vars/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/acf-php-vars/reviews/)

## 贡献者

 *   [ samjco ](https://profiles.wordpress.org/samjco/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/acf-php-vars/)

## 捐助

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

 [ 捐助此插件 ](https://PayPal.Me/samjco)