Title: Inserter
Author: Ari Stathopoulos
Published: <strong>2018 年 2 月 11 日</strong>
Last modified: 2018 年 2 月 17 日

---

搜索插件

![](https://ps.w.org/inserter/assets/banner-772x250.png?rev=1819911)

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

![](https://ps.w.org/inserter/assets/icon.svg?rev=1819911)

# Inserter

 作者：[Ari Stathopoulos](https://profiles.wordpress.org/aristath/)

[下载](https://downloads.wordpress.org/plugin/inserter.1.1.zip)

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

 [支持](https://wordpress.org/support/plugin/inserter/)

## 描述

Inserter allows you to create custom templates from your dashboard and insert the
in your pages, replacing a CSS selector of your choosing.

You can use the [WordPress Templates Interpolation](https://codex.wordpress.org/Javascript_Reference/wp.template#Template_Interpolation)
for [underscore.js](http://underscorejs.org/) and include JS-based logic in your
templates.

You can expose data using the REST API, using the global `$post` object, or provide
your own JSON-formatted data.
 To see the available data, you can add this line 
in your template and then check the console when your site loads: <# console.log(
data ); #>

You can read more about how to use the plugin on [https://aristath.github.io/wordpress/introducing-wordpress-inserter-plugin](https://aristath.github.io/wordpress/introducing-wordpress-inserter-plugin).

## 安装

Simply install as a normal WordPress plugin and activate.

## 常见问题

  Installation Instructions

Simply install as a normal WordPress plugin and activate.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Ari Stathopoulos ](https://profiles.wordpress.org/aristath/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1

February 17, 2018

 * Add `append` and `prepend` modes in addition to `replace`.
 * Require “element” field to be defined when adding/editing template

#### 1.0

February 12, 2018

 * Initial version

## 额外信息

 *  版本 **1.1**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/inserter/)
 * 标签
 * [rest](https://cn.wordpress.org/plugins/tags/rest/)[rest-api](https://cn.wordpress.org/plugins/tags/rest-api/)
   [templates](https://cn.wordpress.org/plugins/tags/templates/)
 *  [高级视图](https://cn.wordpress.org/plugins/inserter/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/inserter/reviews/)

## 贡献者

 *   [ Ari Stathopoulos ](https://profiles.wordpress.org/aristath/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/inserter/)

## 捐助

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

 [ 捐助此插件 ](https://aristath.github.io/donate)