Title: Add External Media
Author: leemon
Published: <strong>2015 年 3 月 11 日</strong>
Last modified: 2019 年 11 月 13 日

---

搜索插件

![](https://ps.w.org/add-external-media/assets/banner-772x250.png?rev=1483467)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/add-external-media/assets/icon-256x256.png?rev=1483467)

# Add External Media

 作者：[leemon](https://profiles.wordpress.org/leemon/)

[下载](https://downloads.wordpress.org/plugin/add-external-media.1.0.5.zip)

 * [详情](https://cn.wordpress.org/plugins/add-external-media/#description)
 * [评价](https://cn.wordpress.org/plugins/add-external-media/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/add-external-media/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/add-external-media/#developers)

 [支持](https://wordpress.org/support/plugin/add-external-media/)

## 描述

Add external media from a [supported oEmbed provider](https://codex.wordpress.org/Embeds)(
YouTube, Vimeo, SoundCloud, Twitter, …) to the media library

## 屏幕截图

[⌊Enter the url and size of the external media you'd like to add to the media library
here⌉⌊Enter the url and size of the external media you'd like to add to the media
library here⌉[

Enter the url and size of the external media you’d like to add to the media library
here

## 安装

 1. Upload the extracted plugin folder and contained files to your /wp-content/plugins/
    directory
 2. Activate the plugin through the “Plugins” menu in WordPress

## 常见问题

  Does this plugin import the actual external media content into the library?

No, external media attachments just contain URL references to the original resources

  How can I show an external media attachment with the specified width and height?

$oembed = new WP_oEmbed();
 $oembed_width = get_post_meta( $attachment->ID, ‘_oembed_width’,
true ); $oembed_height = get_post_meta( $attachment->ID, ‘_oembed_height’, true );
echo $oembed->get_html( wp_get_attachment_url( $attachment->ID ), array( ‘width’
=> $oembed_width, ‘height’ => $oembed_height ) );

  Why are the width and height settings in some external media attachments being
ignored?

Some service providers, such as Twitter and Instagram, have a maximum and minimum
allowed width and ignore the height setting completely

## 评价

![](https://secure.gravatar.com/avatar/22dcf41213b58505959c76ae20650595fbd28c9653c683591c3c6f14d60f1aa5?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-17718/)󠁿

 [lucasbustamante](https://profiles.wordpress.org/lucasbustamante/) 2018 年 4 月
24 日

Great plugin, thanks! I just miss the feature of adding it directly in the WordPress
Media

![](https://secure.gravatar.com/avatar/9e98a453f31765d9f1ad67a2bda436266445b450617243c3b6fbfaf9899e8679?
s=60&d=retro&r=g)

### 󠀁[Meets expectations](https://wordpress.org/support/topic/meets-expectations-2/)󠁿

 [Marc Queralt i Bassa](https://profiles.wordpress.org/marcqueralt/) 2016 年 9 月
3 日

We tried it and does what it says.

![](https://secure.gravatar.com/avatar/8fb4a698326ad52b7b8f9f7b5330c9f1c4f25a306eed9560986fe1a6ca530214?
s=60&d=retro&r=g)

### 󠀁[Does what it says on the tin](https://wordpress.org/support/topic/does-what-it-says-on-the-tin-158/)󠁿

 [Richard B](https://profiles.wordpress.org/richard-b/) 2016 年 9 月 3 日

Excellent plugin, especially for an early version. Does exactly what it says on 
the tin and allows you to add external media straight into your library for use 
anywhere. Would love to see the ability to add an external item from the Media >
Add New page and also from fields like the ACF gallery which do use the standard
WP interface. Good job!

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/add-external-media/reviews/)

## 贡献者及开发者

「Add External Media」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ leemon ](https://profiles.wordpress.org/leemon/)

「Add External Media」插件已被翻译至 4 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/add-external-media/contributors)
为本插件所做的贡献。

[帮助将「Add External Media」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/add-external-media)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/add-external-media/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/add-external-media/)，或通过[RSS](https://plugins.trac.wordpress.org/log/add-external-media/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/add-external-media/)。

## 更新日志

#### 1.0.5

 * Add WP 5.3 support

#### 1.0.4

 * Code refactoring
 * Hooking the plugin’s enqueue function into “wp_enqueue_media” instead of “admin_enqueue_scripts”

#### 1.0.3

 * Use language packs exclusively

#### 1.0.2

 * Language filenames updated

#### 1.0.1

 * Text domain changed to match the plugin’s slug

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.0.5**
 *  最后更新：**7 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.3.21**
 *  PHP 版本 ** 5.3 或更高版本 **
 *  语言
 * [Catalan](https://ca.wordpress.org/plugins/add-external-media/) 、 [English (US)](https://wordpress.org/plugins/add-external-media/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/add-external-media/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/add-external-media/)
   和 [Swedish](https://sv.wordpress.org/plugins/add-external-media/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/add-external-media)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[attachments](https://cn.wordpress.org/plugins/tags/attachments/)
   [external](https://cn.wordpress.org/plugins/tags/external/)[media](https://cn.wordpress.org/plugins/tags/media/)
   [oembed](https://cn.wordpress.org/plugins/tags/oembed/)
 *  [高级视图](https://cn.wordpress.org/plugins/add-external-media/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/add-external-media/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/add-external-media/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/add-external-media/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/add-external-media/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/add-external-media/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/add-external-media/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/add-external-media/reviews/)

## 贡献者

 *   [ leemon ](https://profiles.wordpress.org/leemon/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/add-external-media/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=oscarciutat%40gmail%2ecom)