[wordpress插件] Advanced Custom Fields: Accordion Tab Field高级自定义字段:“手风琴”选项卡字段

wordpress 插件 文章 2020-01-26 02:20 554 0 全屏看文

AI助手支持GPT4.0

评分

96

96

描述

The ACF Accordion provides an easy way to organize big forms by grouping the fields in accordion tabs.

“ ACF手风琴”提供了一种通过将手风琴标签中的字段分组来组织大型表格的简便方法。

It works with horizontal tabs and it also supports WordPress icons.

它与水平选项卡一起使用,还支持WordPress图标。

Please contribute here

请在此处贡献

https://github.com/bvdr/acf-accordion

https://github.com/bvdr/acf-accordion

Compatibility

兼容性

This ACF field type is compatible with:

此ACF字段类型兼容:

    • ACF PRO
    • ACF PRO

    • ACF 5
    • ACF 5

    • ACF 4
    • ACF 4

安装步骤

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

    3. Activate the Accordion Tab plugin via the plugins admin page
    4. 通过插件管理页面激活“手风琴标签”插件

    5. Create a new field via ACF and select the Accordion Tab type
    6. 通过ACF创建新字段,然后选择“手风琴”标签类型

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

    Including it in theme

    将其包含在主题中

    ACF Accordion can be included in the theme by using the acf/accordion/dir filter.

    通过使用 acf / accordion / dir 过滤器,可以将

    ACF手风琴包含在主题中。

    Here is an example

    这是一个例子

    `php

     `php

    include_once( ‘includes/acf-accordion/acf-accordion.php’ );

    include_once(‘includes / acf-accordion / acf-accordion.php’);

    add_filter( ‘acf/accordion/dir’, ‘acf_accordion_dir’ );

    add_filter('acf / accordion / dir','acf_accordion_dir');

    function acf_accordion_dir( $dir ) {
        

    函数acf_accordion_dir($ dir){
        

    $dir = get_template_directory_uri() .

    $ dir = get_template_directory_uri()。

    ‘/includes/acf-accordion/’;
        

    ‘/ includes / acf-accordion /”;
        

    return $dir;

    返回$ dir;

    }
        

    }
        

    `

    `

下载地址

https://downloads.wordpress.org/plugin/acf-accordion.zip

https://downloads.wordpress.org/plugin/acf-accordion.zip

-EOF-

AI助手支持GPT4.0