[wordpress插件] Advanced Custom Fields – Address Field add-on高级自定义字段–地址字段附加组件

wordpress 插件 文章 2020-02-07 03:00 541 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

This is an add-on for the Advanced Custom Fields

这是高级自定义字段的附加组件

WordPress plugin and will not provide any functionality to WordPress unless Advanced Custom Fields is installed

WordPress插件,除非安装了高级自定义字段,否则不会为WordPress提供任何功能

and activated.

并激活。

The address field provides the ability to enter an address by component (street, city, state,

地址字段提供了按组成部分(街道,城市,州,

postal code, country, …), enable or disable components, and change the layout of the

邮政编码,国家/地区,…),启用或禁用组件以及更改
的布局

entered address (on the post screen) and printed address ( get_value() api call).

输入的地址(在帖子屏幕上)和打印的地址(get_value()api调用)。

Source Repository on GitHub

GitHub上的源存储库

https://github.com/GCX/acf-address-field

https://github.com/GCX/acf-address-field

Bugs or Suggestions

错误或建议

https://github.com/GCX/acf-address-field/issues

https://github.com/GCX/acf-address-field/issues

安装步骤

The Address Field plugin can be used as WordPress plugin or included in other plugins or themes.

“地址字段”插件可以用作WordPress插件,也可以包含在其他插件或主题中。

There is no need to call the Advanced Custom Fields register_field() method for this field.

无需为此字段调用高级自定义字段 register_field()方法。

    • WordPress plugin

    • WordPress插件

        1. Download the plugin and extract it to /wp-content/plugins/ directory.
        2. 下载插件并将其解压缩到 / wp-content / plugins / 目录。

        3. Activate the plugin through the Plugins menu in WordPress.
        4. 通过WordPress中的插件菜单激活插件。

      1. Added to a Theme or Plugin

      2. 已添加到主题或插件

          1. Download the plugin and extract it to your theme or plugin directory.
          2. 下载插件并将其解压缩到主题或插件目录。

          3. Include the address-field.php file in you theme’s functions.php or plugin file.
               

          4. 在主题的 functions.php 或插件文件中包含 address-field.php 文件。
               

            include_once( rtrim( dirname( FILE ), ‘/’ ) . ‘/acf-address-field/address-field.php’ );

          5. include_once(rtrim(dirname( FILE ),‘/’)。‘/acf-address-field/address-field.php’);

下载地址

https://downloads.wordpress.org/plugin/advanced-custom-fields-address-field-add-on.1.0.1.zip

https://downloads.wordpress.org/plugin/advanced-custom-fields-address-field-add-on.1.0.1.zip

-EOF-

AI助手支持GPT4.0