[wordpress插件] Advanced Custom Fields: oEmbed Field高级自定义字段:oEmbed字段

wordpress 插件 文章 2020-02-07 08:20 515 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

Requires the Advanced Custom Fields plugin.

需要高级自定义字段插件。

Output can be selected as HTML embed, URL, or data object.

可以将输出选择为HTML嵌入,URL或数据对象。

Includes settings for preview and output resolution and will accept any provider registered in WordPress.

包括用于预览和输出分辨率的设置,并且将接受在WordPress中注册的任何提供商。

With the news that ACF V5 includes a built-in oEmbed field type, we’re discontinuing further development of this plugin.

随着ACF V5包含内置oEmbed字段类型的消息,我们将停止对该插件的进一步开发。

The plugin will remain online for legacy V4 support to those that haven’t upgraded, but only essential updates will be released.

该插件将保持在线状态,以支持尚未升级的旧版V4,但只会发布基本更新。

Compatibility

兼容性

This add-on will work with:

该插件可以使用:

    • Advanced Custom Fields version 4 and up
    • 高级自定义字段版本4及更高版本

    • Repeater Field
    • 中继器字段

安装步骤

This add-on can be treated as both a WP plugin and a theme include.

此附加组件可以被视为WP插件和主题包含。

Plugin

插件

    1. Copy the ‘acf-oembed’ folder into your plugins folder
    2. 将“ acf-oembed”文件夹复制到您的插件文件夹中

    3. Activate the plugin via the Plugins admin page
    4. 通过“插件管理”页面激活插件

    Include

    包含

      1. Copy the ‘acf-oembed’ folder into your theme folder (can use sub folders).

      2. 将“ acf-oembed”文件夹复制到您的主题文件夹中(可以使用子文件夹)。

        You can place the folder anywhere inside the ‘wp-content’ directory

      3. 您可以将文件夹放置在“ wp-content”目录内的任何位置

      4. Edit your functions.php file and add the code below (Make sure the path is correct to include the acf-oembed.php file)

        编辑您的functions.php文件并添加以下代码(确保路径正确无误,以包括acf-oembed.php文件)

        add_action(‘acfegister_fields’, ‘my_register_fields’);

        add_action('acf / register_fields','my_register_fields');

        function my_register_fields()

        function my_register_fields()

        {
            

        {
            

        include_once(‘acf-oembed/acf-oembed.php’);

        include_once(‘acf-oembed / acf-oembed.php’);

        }

        }

下载地址

https://downloads.wordpress.org/plugin/advanced-custom-fields-oembed-field.zip

https://downloads.wordpress.org/plugin/advanced-custom-fields-oembed-field.zip

-EOF-

AI助手支持GPT4.0