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

wordpress 插件 文章 2020-01-29 20:20 515 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


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] ConvergeHub For Contact Form 7ConvergeHub联系表格7
[wordpress插件] Ajax Scroll阿贾克斯滚动
[wordpress插件] Autoresponder自动回复
[wordpress插件] Find Slow Functions & Actions & Filters & Hooks (Debug Bar)查找缓慢的功能和动作以及过滤器和挂钩(调试栏)
[wordpress插件] Categories Page分类页面
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 7995
问题? 7226
如何快速搭建抽奖助手小程序(无需代码知识) 5018
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 5970
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5494
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5191
如何解决渲染层网络错误Failed to load media? 16545
小程序找号找回 释放昵称? 2412
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2491
删除部分微信用户个人数据的通知,怎么删除? 5530