[wordpress插件] Advanced Custom Fields – Menu Field add-on高级自定义字段–菜单字段附加组件

wordpress 插件 文章 2020-02-07 06:40 507 0 全屏看文

AI助手支持GPT4.0

评分

74

74

描述

This is an add-on for the Advanced Custom Fields WordPress plugin and will not provide any functionality to WordPress

这是高级自定义字段 WordPress插件的附加组件,不会为WordPress提供任何功能

unless Advanced Custom Fields is installed and activated.

除非已安装并激活了高级自定义字段。

This add-on creates an Advanced Custom Fields field type that, when associated with a WordPress Menu, renders a single or optionally, a multi select element, containing the items in the menu.

此加载项创建一个高级自定义字段字段类型,当与WordPress菜单关联时,该字段类型呈现一个包含菜单项的单个或可选的多重选择元素。

The user selection is returned as a plain text string, or, if the field is configured as a multi select, as an array.

用户选择以纯文本字符串形式返回,或者,如果将该字段配置为多重选择,则以数组形式返回。

安装步骤

    1. Upload the acf-menu-field directory to the /wp-content/plugins/ directory found in your web root.
    2. acf-menu-field 目录上载到在Web根目录下的 / wp-content / plugins / 目录中。

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

    5. Create a new custom field with the type ‘WordPress Menu’.
    6. 使用“ WordPress菜单”类型创建一个新的自定义字段。

    There is no need to use ACF’s register_field(); method for this field.

    此字段无需使用ACF的 register_field(); 方法。

    This plugin will, if ACF is installed and actived, register the field automatically.

    如果安装并激活了ACF,此插件将自动注册该字段。

    You can also include this plugin directly in your theme by using require('path_to_menu_field.php');.

    您还可以使用 require('path_to_menu_field.php'); 直接将此插件包含在主题中。

下载地址

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

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

-EOF-

AI助手支持GPT4.0