Linux 软件免费装

Image Upload Helper

开发者 jbrinley
更新时间 2012年6月10日 04:45
捐献地址: 去捐款
PHP版本: 3.3 及以上
WordPress版本: 3.3.2
版权: MIT
版权网址: 版权信息

标签

admin images library uploading

下载

详情介绍:

WordPress has a wonderful JavaScript/iframe dialog for uploading or choosing images to use in posts or as featured thumbnails. Repurposing this dialog for other uses is difficult. Image Upload Helper is a simple library that helps you add an image upload/selection field anywhere in the WordPress admin, using a single function. Created by Flightless with significant credit to Modern Tribe

安装:

  1. Upload the plugin to your blog.
  2. Activate it.
  3. Nothing happens.
This is a library. It doesn't actually do anything by itself. To use it in a plugin:
  1. Include this plugin (in its entirety) in a subdirectory of your plugin. It plays nice with other plugins; if a site has multiple plugins activated, each with its own copy of Image Upload Helper, only one will load.
  2. require_once( 'image-upload-helper/image-upload-helper.php' );
  3. Call image_upload_helper() wherever you want an upload dialog available.
The image_upload_helper() function takes an array of arguments to control exactly what the form looks like. When a form is submitted with an Image Upload Helper field, the field specified by the field_name argument will contain the attachment ID of the selected image.

更新日志:

1.0 Initial version