Title: Custom JS
Author: seosbg
Published: <strong>सितम्बर 20, 2016</strong>
Last modified: नवम्बर 3, 2026

---

Search plugins

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

![](https://ps.w.org/custom-js/assets/icon-128x128.png?rev=3798933)

# Custom JS

 [seosbg](https://profiles.wordpress.org/seosbg/) लिखले बारे

[डाउनलोड](https://downloads.wordpress.org/plugin/custom-js.2.0.0.zip)

 * [Details](https://bho.wordpress.org/plugins/custom-js/#description)
 * [समीक्षा](https://bho.wordpress.org/plugins/custom-js/#reviews)
 *  [Installation](https://bho.wordpress.org/plugins/custom-js/#installation)
 * [Development](https://bho.wordpress.org/plugins/custom-js/#developers)

 [मदद](https://wordpress.org/support/plugin/custom-js/)

## बिबरन

Custom JS lets you add JavaScript (analytics, tag managers, chat widgets, pixels,
your own scripts) to WordPress without editing theme files.

**Features**

 * **Head, Body and Footer** code – including the new “after ” location (Google 
   Tag Manager noscript etc.).
 * **Unlimited snippets** – named pieces of code you can switch on/off, duplicate
   and organise.
 * **Conditions per snippet** – front page, blog, posts, pages, archives, search,
   404, specific IDs/slugs, URL rules with wildcards, exclusions.
 * **Visitor targeting** – everyone, logged-in, logged-out, non-admins, specific
   user roles, desktop or mobile.
 * **Scheduling** – start and end date/time for campaigns and promos.
 * **External scripts** – add a script by URL with async / defer / type=”module”.
 * **Auto-wrap** – paste plain JavaScript, the plugin adds the
 * **Load jQuery on demand** for snippets that need it.
 * **Admin area and login page** code.
 * **Per-page code** – a “Custom JS” box on the post/page edit screen, with an option
   to switch off the global code on that page.
 * **Code editor** with syntax highlighting, line numbers, linting and an optional
   dark theme. Ctrl+S / Cmd+S to save.
 * **Revisions** – every save is kept; view and restore older versions.
 * **Import / Export** to JSON – backups and moving between sites.
 * **Safe mode** – `?cjs_safe_mode=1` or `define( 'CJS_SAFE_MODE', true );` disables
   all custom code if something breaks.
 * **Kill switch**, “do not load for admins” (keeps your visits out of analytics),
   HTML comment markers for debugging.
 * **Secure** – nonces on every action; on multisite only super admins can add code.
 * Developer filters: `cjs_capability`, `cjs_front_allowed`, `cjs_snippet_should_run`,`
   cjs_snippet_code`, `cjs_output_{option}`, `cjs_metabox_post_types`.

#### Free WordPress Themes by SEOS Themes

Custom JS is made by **SEOS Themes** – the team behind high quality, HTML5, responsive
and mobile friendly WordPress themes, downloaded more than 2,000,000 times.

Blog, news & magazine, online shop, business, real estate, restaurant, photography,
music, portfolio and many more – most of them completely free.

**[Browse all themes at seosthemes.com](https://seosthemes.com/)**

## Screenshots

[⌊Admin Panel view of submitted form data.⌉⌊Admin Panel view of submitted form data
.⌉[

Admin Panel view of submitted form data.

## Installation

#### Install via Plugins > Install New

 1. Search for “Custom JS”
 2. Click the “Install Now” link
 3. Click “Activate Plugin”

#### Via ZIP / FTP

 1. Unzip the ZIP file and drop the folder straight into your wp-content/plugins directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## FAQ

### I am updating from 1.0 – will my code still work?

Yes. Your existing Head and Footer code is kept in the same place and printed exactly
as before (Auto-wrap is left off for upgraded sites). The admin page keeps the same
address.

### Do I need to add

On new installs, no – plain JavaScript is wrapped automatically. Code that already
contains HTML tags is printed as is.

### My JavaScript broke the site / dashboard. What do I do?

Open any page with `?cjs_safe_mode=1` at the end of the URL while logged in, or 
add `define( 'CJS_SAFE_MODE', true );` to wp-config.php. Then fix or restore the
code from Revisions.

### Is there a tutorial?

See the [Tutorial](https://www.seosthemes.com/custom-js/)

## समीक्षा

There are no reviews for this plugin.

## Contributors & Developers

“Custom JS” is open source software. The following people have contributed to this
plugin.

Contributors

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

[Translate “Custom JS” into your language.](https://translate.wordpress.org/projects/wp-plugins/custom-js)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/custom-js/), check 
out the [SVN repository](https://plugins.svn.wordpress.org/custom-js/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/custom-js/) by [RSS](https://plugins.trac.wordpress.org/log/custom-js/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.0

 * New: “After ” location.
 * New: unlimited snippets with location, priority, on/off switch, duplicate and
   notes.
 * New: page, URL, user, role, device and schedule conditions for snippets.
 * New: external script snippets with async / defer / module.
 * New: admin area and login page code.
 * New: per-post / per-page code box, with option to disable global code on a page.
 * New: code editor with syntax highlighting, linting, dark theme and Ctrl+S save.
 * New: revisions with restore.
 * New: import / export JSON.
 * New: safe mode, kill switch, hide for admins / logged-in users, HTML comment 
   markers.
 * New: optional auto-wrap of plain JavaScript in
 * New: option to delete data on uninstall (off by default).
 * Fix: translations now load with the correct text domain.
 * Security: nonce checks everywhere; on multisite only users with unfiltered_html
   can save code.
 * Fully backward compatible with 1.0 – existing code, admin URL and hook names 
   are unchanged.

#### 1.0

 * Initial release of plugin

## मेटा

 *  Version **2.0.0**
 *  Last updated **1 week पहिले**
 *  Active installations **100+**
 *  WordPress version ** 4.6 चाहे एकरो से ऊपर **
 *  Tested up to **7.1.4**
 *  PHP version ** 5.6 चाहे एकरो से ऊपर **
 *  Language
 * [English (US)](https://wordpress.org/plugins/custom-js/)
 * Tags
 * [analytics](https://bho.wordpress.org/plugins/tags/analytics/)[custom js](https://bho.wordpress.org/plugins/tags/custom-js/)
   [header footer code](https://bho.wordpress.org/plugins/tags/header-footer-code/)
   [javascript](https://bho.wordpress.org/plugins/tags/javascript/)[snippets](https://bho.wordpress.org/plugins/tags/snippets/)
 *  [Advanced View](https://bho.wordpress.org/plugins/custom-js/advanced/)

## रेटिंग्स

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/custom-js/reviews/)

## Contributors

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

## मदद

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/custom-js/)

## दान

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.seosthemes.com/custom-js/)