[wordpress插件] ACF: Field SelectorACF:字段选择器

wordpress 插件 文章 2020-01-26 13:20 855 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

The filed selector field allows the selection of other custom fields.

字段选择器字段允许选择其他自定义字段。

This is useful in situations where you want to give the user powerful display options.

在要为用户提供强大的显示选项的情况下,这很有用。

You could, for example, allow the user to select which custom fields are displayed in a post.

例如,您可以允许用户选择在帖子中显示哪些自定义字段。

ACF Compatibility

ACF兼容性

This ACF field type is compatible with both ACF 4 and ACF 5.

此ACF字段类型与 ACF 4 ACF 5 兼容。

Thanks

谢谢

安装步骤

Automatic Installation

自动安装

Installing this plugin automatically is the easiest option.

自动安装此插件是最简单的选择。

You can install the plugin automatically by going to the plugins section in WordPress and clicking Add New.

您可以通过转到WordPress中的“插件”部分并单击“添加新项”来自动安装插件。

Type “ACF Field Selector” in the search bar and install the plugin by clicking the Install Now button.

在搜索栏中输入“ ACF字段选择器”,然后单击“立即安装”按钮来安装插件。

Manual Installation

手动安装

    1. Copy the acf-field-selector-field folder into your wp-content/plugins folder
    2. acf-field-selector-field 文件夹复制到您的 wp-content / plugins 文件夹

    3. Activate the Google Field Selector plugin via the plugins admin page
    4. 通过插件管理页面激活Google Field Selector插件

    5. Create a new field via ACF and select the Role Selector type
    6. 通过ACF创建新字段,然后选择“角色选择器”类型

    7. Please refer to the description for more info regarding the field type settings
    8. 有关字段类型设置的更多信息,请参阅说明

    For Developers

    对于开发人员

    For developers I’ve included a filter which allows you to further filter selected fields.

    对于开发人员,我提供了一个过滤器,可让您进一步过滤选定的字段。

    At the moment this filter is used to make sure that included and excluded types and groups are reflected in the selectable list.

    目前,此过滤器用于确保包含和排除的类型和组反映在可选列表中。

    add_filter( 'acffsf/item_filters', 'selectable_item_filter', 10, 2 )

      add_filter('acffsf / item_filters','selectable_item_filter',10,2)

    The first parameter is the list of items to modify, the second is the setting field.

    第一个参数是要修改的项目列表,第二个参数是设置字段。

下载地址

https://downloads.wordpress.org/plugin/acf-field-selector-field.zip

https://downloads.wordpress.org/plugin/acf-field-selector-field.zip

-EOF-

AI助手支持GPT4.0