[wordpress插件] Add Custom Fields to Media将自定义字段添加到媒体

wordpress 插件 文章 2020-01-29 20:20 509 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

** this plugin is no longer being update.

**此插件不再更新。

Please feel free to adopt me!

请随时收养我!

**

**

Allows users to add custom fields to the media uploader and access those fields in template files.

允许用户将自定义字段添加到媒体上载器并访问模板文件中的那些字段。

Great for adding copyrights etc.

非常适合添加版权等。

Includes the following functions to help improve your website:

包括以下功能来帮助改善您的网站:

    • thisismyurl_get_custom_media_field( $attachment_id, $unique_field_id ) – Fetches the value
    • thisismyurl_get_custom_media_field($ attachment_id,$ unique_field_id) –获取值

    • thisismyurl_has_custom_media_field( $attachment_id, $unique_field_id ) – Returns boolean value
    • thisismyurl_has_custom_media_field($ attachment_id,$ unique_field_id) –返回布尔值

    • thisismyurl_custom_media_field( $attachment_id, $unique_field_id ) – Displays the value
    • thisismyurl_custom_media_field($ attachment_id,$ unique_field_id) –显示值

    To use this plugin effectively, download and intall it on your WordPress blog.

    要有效使用此插件,请在WordPress博客上下载并安装该插件。

    Next, access the settings page (Settings > Add Custom Fields to Media) and create a new custom field for your media uploads.

    接下来,访问设置页面(“设置”>“向媒体添加自定义字段”)并为您的媒体上传创建一个新的自定义字段。

      • Unique ID – The unique variable name for this item.

      • 唯一ID –此项的唯一变量名称。

        It may not contain special characaters or spaces

      • 它可能不包含特殊字符或空格

      • Field Title – The name you want to appear in the media uploader
      • 字段标题–您要在媒体上传器中显示的名称

      • Field Help – A descriptive message you want to appear in the media uploader
      • 字段帮助–您要在媒体上传器中显示的描述性消息

      Once you’ve added a custom field, you can access it via the Media menu in WordPress or during the Add Media process of uploading a new item.

      添加自定义字段后,您可以通过WordPress中的“媒体”菜单或在上传新项目的“添加媒体”过程中访问它。

      To display the information on your website, please use thisismyurl_custom_media_field( $attachment_id, $unique_field_id ).

      要显示您网站上的信息,请使用 thisismyurl_custom_media_field($ attachment_id,$ unique_field_id)

      If you would like to load the contents into a variable, please use thisismyurl_get_custom_media_field( $attachment_id, $unique_field_id )

      如果要将内容加载到变量中,请使用 thisismyurl_get_custom_media_field($ attachment_id,$ unique_field_id)

      To check if a variable exists, use thisismyurl_has_custom_media_field( $attachment_id, $unique_field_id )

      要检查变量是否存在,请使用 thisismyurl_has_custom_media_field($ attachment_id,$ unique_field_id)

      In all cases the $unique_field_id is the Unique ID you specified when creating the field.

      在所有情况下,$ unique_field_id是您在创建字段时指定的唯一ID。

      The $attachment_id is the ID of the attachment itself (not the post that you’re working with).

      $ attachment_id是附件本身的ID(而不是您正在使用的帖子)。

      Updates

      更新

      Updates to the plugin will be posted to http://thisismyurl.com/downloads/add-custom-fields-to-media/

      对该插件的更新将发布到http://thisismyurl.com/downloads/add-custom-fields-to-media/

      Donations

      捐赠

      If you would like to donate to help support future development of this tool, please visit http://thisismyurl.com/downloads/wordpress-plugins/

      如果您想捐款以支持该工具的未来开发,请访问http://thisismyurl.com/downloads/wordpress-plugins/

安装步骤

To install the plugin, please upload the folder to your plugins folder and active the plugin.

要安装插件,请将该文件夹上传到您的plugins文件夹并激活该插件。

下载地址

https://downloads.wordpress.org/plugin/add-custom-fields-to-media.zip

https://downloads.wordpress.org/plugin/add-custom-fields-to-media.zip

-EOF-

AI助手支持GPT4.0