跳到内容

Lightweight JS Snippet

v1.4.2

Jonas Hjalmarsson · 2022年9月9日 上架

Add a small inline JavaScript snippet to one or more specific posts or pages, by post ID. No bloat, no front-end editor.

正在使用
10 以下
评分
暂无
累计下载
1,416
最近更新
2026年10月23日
需要 WordPress 5.0+已测试到 7.1.5PHP 7.4+

截图

Settings page with code editor and post-ID list.
Settings page with code editor and post-ID list.

A minimal way to inject a single inline JavaScript snippet into the <head> of one or more specific posts, pages or products. You give it a comma-separated list of post IDs and the JS body — that is the entire surface area.

The point is the absence of features. There is no per-post UI, no script library, no CDN selector, no “fire on event” toggle. If all you need is to drop a tracking pixel or a tiny script on three specific pages, you do not want a 2 MB plugin that wants to manage your whole site.

Set it up under Settings Lightweight JS snippet. The page provides a textarea for the JS (no <script> tags — those are added for you) and a comma-separated list of post IDs to load it on.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums