Title: In Page Script
Author: Phuc Pham
Published: <strong>2015 年 9 月 7 日</strong>
Last modified: 2015 年 9 月 7 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/in-page-script.svg)

# In Page Script

 作者：[Phuc Pham](https://profiles.wordpress.org/svincoll4/)

[下载](https://downloads.wordpress.org/plugin/in-page-script.0.1.zip)

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

 [支持](https://wordpress.org/support/plugin/in-page-script/)

## 描述

This plugin helps to add scripts into the header (before close tag </HEAD>) or the
footer (before close tag </BODY>).

 * Add header/footer scripts for all pages
 * Add header/footer scripts for individual page
 * Add header/footer scripts for Order Received page (Woocommerce)
 * Allows filter to support custom post types

Although this plugin has been created to add these scripts only, there is no limit
to add other things on the page such as META tags, STYLESHEET/CSS tags, HTML tags…

## 屏幕截图

 * [[
 * Screenshot

## 安装

 1. Download and unzip the plugin into your WordPress plugins directory (usually /wp-
    content/plugins/).
 2. Activate the plugin through the ‘Plugins’ menu in your WordPress Admin.
 3. Edit pages to input the header/footer script. You can also input the script under
    Settings -> In Page Script.
 4. Support Woocommerce Order Received page.

## 常见问题

  How to use this plugin for custom post types

You may want to use this filter from functions.php: **ips_post_type**

For ex:

    ```
    add_action('init', 'init_ips_plugin');
    function init_ips_plugin(){
        add_filter('ips_post_type', 'filter_ips_post_type');
    }
    function filter_ips_post_type($post_types){
        // replace custom_post_type with yours
        return array('page', 'custom_post_type');
    }
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Phuc Pham ](https://profiles.wordpress.org/svincoll4/)

[帮助将「In Page Script」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/in-page-script)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1

 * Add header/footer scripts for all pages
 * Add header/footer scripts for individual page
 * Add header/footer scripts for Order Received page (Woocommerce)
 * Allows filter to support custom post types

## 额外信息

 *  版本 **0.1**
 *  最后更新：**11 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/in-page-script/)
 * 标签
 * [footer script](https://cn.wordpress.org/plugins/tags/footer-script/)[Google Analytics script](https://cn.wordpress.org/plugins/tags/google-analytics-script/)
   [header script](https://cn.wordpress.org/plugins/tags/header-script/)
 *  [高级视图](https://cn.wordpress.org/plugins/in-page-script/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/in-page-script/reviews/)

## 贡献者

 *   [ Phuc Pham ](https://profiles.wordpress.org/svincoll4/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/in-page-script/)

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=QZUJY7DR3JYWS&lc=VN&item_name=In%20Page%20Script%20Plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)