Title: Auto Embed
Author: AspieSoft
Published: <strong>2020 年 9 月 3 日</strong>
Last modified: 2023 年 7 月 25 日

---

搜索插件

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

![](https://ps.w.org/aspiesoft-auto-embed/assets/icon-128x128.png?rev=2714980)

# Auto Embed

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

[下载](https://downloads.wordpress.org/plugin/aspiesoft-auto-embed.zip)

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

 [支持](https://wordpress.org/support/plugin/aspiesoft-auto-embed/)

## 描述

Easily Embed Dynamic Lazy Loading Youtube Videos And More Simply By Pasting The 
Url.

This plugin does most of the work client side, and waits for the page to finish 
loading so embeds do not slow down your site.
 Shortcodes are not needed (but are
available), just add a clickable link to the youtube video, and the plugin will 
find all the youtube.com and youtu.be links, and replace them with an embed.

You know how sites like discord let you paste a youtube url, and an embed of the
video shows up?
 This plugin works kind of like that, while also working with playlists,
live streams, channels, youtube search, etc.

YouTube has an organized url system, and this plugin recognizes it.
 Every youtube
playlist id starts with “PL”, and youtube uses many other consistent url methods
like this.

Now supports local pdf embeds.
 Now supports google doc to pdf embeds.

This plugin allowes you to optionally load assets from cdn.jsdelivr.net, to improve
performance and load the assets from the github repository of this plugin. By default,
the plugin loads assets locally, but you can change this to use jsdelivr in the 
plugin settings. When Enabled, The jsdelivr [Acceptable Use Policy](https://www.jsdelivr.com/terms/acceptable-use-policy-jsdelivr-net)
and [Privacy Policy](https://www.jsdelivr.com/terms/privacy-policy-jsdelivr-net)
Apply.

## 安装

 1. Upload plugin to the /wp-content/plugins
 2. Activate the plugin through the “Plugins” menu in WordPress
 3. Enjoy

## 常见问题

### How do I embed a video/playlist/channel uploads?

Just put a clickable link to the video/playlist/channel, and the plugin will do 
the rest.

### How do I use the shortcode?

[auto-embed
 url=”url to video” width=”optional width in % (default: 100%)” min-
width=”optional minimum width in px (default: 300px)” max-width=”optional maximum
width in px (default: 2500px)” ratio=”optional width:height ratio (default: 16:9)”
autoplay=”optional autoplay video (default: false)” mute=”optional mute video (default:
false)” live=”optional embed live video (default: false)” popular=”optional embed
popular uploads playlist (default: false)” search=”optional embed playlist based
on a youtube search (default: false)” ]

### How do I embed a live stream?

Just add “?live” or “&live” to the url. The plugin checks query parameters of the
url and makes changes as needed.

### How do I change the width of an embed?

Add “?width=any valid css width” to the url.

### How do I change the ratio of an embed?

Add “?ratio=w:h” to the url.
 Replace “w” with the ratio width, and “h” with the
ratio height.

### How do I embed the popular uploads from my channel?

Add a link to your YouTube channel and add “?popular” or “&popular” to the url

### How do I embed a playlist based on a youtube search?

Set the link to “https://youtu.be/(insert search query)?search=1”

### How do I make the embed take up more width on mobile?

Add “?min-width=(insert min width)&max-width=(insert max width)” to the url

### How do I embed a pdf?

Any url that points to the current domain and ends with “.pdf” will automatically
be seen as a pdf

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「Auto Embed」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/aspiesoft-auto-embed)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.5.3

Added Google Doc To PDF Support

#### 1.5.2

Improved Lazy Loading

#### 1.5

Removed Facebook Support For Leagal Reasons

#### 1.4.7

Now ignores links inside headers and footers

#### 1.4.2

Added optional overriding of iframes and wp-embed

#### 1.4

Added option to only embed shortcodes

#### 1.2

Added support for embedding images
 Now ignores links that include class, id, or
name attributes (to allow button links to work as normal)

#### 1.1

Added support for pdf files

#### 1.0.3

Added option to load scripts and styles from jsdelivr.net (can improve performance)

#### 1.0

Initial Commit

## 额外信息

 *  版本 **1.5.8**
 *  最后更新：**3 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **6.0.12**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/aspiesoft-auto-embed/)
 * 标签
 * [auto](https://cn.wordpress.org/plugins/tags/auto/)[Dynamic](https://cn.wordpress.org/plugins/tags/dynamic/)
   [embed](https://cn.wordpress.org/plugins/tags/embed/)[pdf](https://cn.wordpress.org/plugins/tags/pdf/)
   [youtube](https://cn.wordpress.org/plugins/tags/youtube/)
 *  [高级视图](https://cn.wordpress.org/plugins/aspiesoft-auto-embed/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/aspiesoft-auto-embed/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/aspiesoft-auto-embed/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/aspiesoft-auto-embed/)

## 捐助

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

 [ 捐助此插件 ](https://buymeacoffee.aspiesoft.com)