Title: Google Docs oEmbed
Author: log_oscon
Published: <strong>2015 年 6 月 21 日</strong>
Last modified: 2016 年 10 月 15 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/google-docs-oembed.svg)

# Google Docs oEmbed

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

[下载](https://downloads.wordpress.org/plugin/google-docs-oembed.1.0.10.zip)

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

 [支持](https://wordpress.org/support/plugin/google-docs-oembed/)

## 描述

Registers an oEmbed handler for Google Docs and adds it to the whitelist, allowing
all users who can write posts/pages to embed documents, spreadsheets and presentations.

#### 用法

To embed a Google Doc into a post or page:
 1. Open the document on Google Drive
2. Select the Publish to the Web under the File menu 3. Then copy the link and paste
it into the content area. Make sure the URL is on its own line and not hyperlinked(
clickable when viewing the post)

For example:
 https://docs.google.com/document/d/abcdefghij/pub

Another option is to wrap the URL in the [embed] shortcode:
 [embed width=”860″ 
height=”640″]https://docs.google.com/document/d/abcdefghij/pub[/embed]

## 安装

#### Dashboard

 1. Go to the ‘Plugins’ menu, and choose ‘Add New’.
 2. Search for ‘google-docs-oembed’, and then click ‘Install Now’.
 3. Click ‘Activate’.

#### FTP

 1. Download and extract the .zip file.
 2. Upload the unzipped folder to the `/wp-content/plugins/` directory.
 3. Activate the plugin through the ‘Plugins’ menu.

#### Composer

    ```
    composer require logoscon/google-docs-oembed
    ```

## 常见问题

  Where can I report bugs?

Bugs can be reported on the [GitHub repository](https://github.com/log-oscon/google-docs-oembed/issues).

  How can I contribute?

Join in on our [GitHub repository](https://github.com/log-oscon/google-docs-oembed)
and read our [contribution](https://github.com/log-oscon/google-docs-oembed/blob/master/CONTRIBUTING.md)
guidelines.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ log_oscon ](https://profiles.wordpress.org/log_oscon/)
 *   [ Sérgio Santos ](https://profiles.wordpress.org/s3rgiosan/)

「Google Docs oEmbed」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/google-docs-oembed/contributors)
为本插件所做的贡献。

[帮助将「Google Docs oEmbed」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/google-docs-oembed)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.10

 * Added Code Climate integration.
 * Added moar badges (yes I am a badge poser).
 * Added contribution guidelines.
 * Updated README.

#### 1.0.9

 * Updated Codacy badge url.
 * Fixed NPath complexity of 300.

#### 1.0.8

 * Added Codacy (a tool for automated code review) badge.
 * Removed the loader class.

#### 1.0.7

 * Minor changes.
 * Added language file.

#### 1.0.6

 * Fix PSR-4 loader conflict with older implementation.

#### 1.0.5

 * Added GitHub Updater support.
 * Added Update supported WordPress version.

#### 1.0.4

 * Added composer.lock to repo.
 * Added vendor folder to SVN repo.

#### 1.0.3

 * Minor changes.

#### 1.0.2

 * Check if autoloader exists before requiring.

#### 1.0.1

 * Removed an esc_attr() incorrectly called on $extra.
 * Added a build task with composer support.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.10**
 *  最后更新：**10 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **4.6.30**
 *  语言
 * [Czech](https://cs.wordpress.org/plugins/google-docs-oembed/) 、 [English (US)](https://wordpress.org/plugins/google-docs-oembed/)
   和 [Greek](https://el.wordpress.org/plugins/google-docs-oembed/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/google-docs-oembed)
 * 标签
 * [docs](https://cn.wordpress.org/plugins/tags/docs/)[document](https://cn.wordpress.org/plugins/tags/document/)
   [embed](https://cn.wordpress.org/plugins/tags/embed/)[google](https://cn.wordpress.org/plugins/tags/google/)
   [oembed](https://cn.wordpress.org/plugins/tags/oembed/)
 *  [高级视图](https://cn.wordpress.org/plugins/google-docs-oembed/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/google-docs-oembed/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/google-docs-oembed/reviews/)

## 贡献者

 *   [ log_oscon ](https://profiles.wordpress.org/log_oscon/)
 *   [ Sérgio Santos ](https://profiles.wordpress.org/s3rgiosan/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/google-docs-oembed/)