Code Unloader

Code Unloader

توسط

Official plugin homepage:
https://wpservice.pro/our-products/code-unloader/

Code Unloader gives site administrators surgical control over which JavaScript and CSS files are loaded on each individual page or post.

Key Features:

  • Disable any registered JS or CSS file on any page or post
  • Exact URL, wildcard pattern (/shop/*), and full regex matching
  • Rules survive cache flushes and plugin reactivations
  • Assets grouped by plugin, theme, or WordPress Core in the panel
  • Per-page frontend panel accessible from the Admin Toolbar
  • Access panel on any page via ?wpcu URL parameter
  • Global admin screen listing all rules across the site
  • One-click kill switch to instantly restore all assets sitewide
  • Bypass all rules for a single request via ?nowpcu URL parameter
  • Conditional rules (logged-in users, WooCommerce pages, shortcodes, post types)
  • Device-type rules (desktop-only or mobile-only)
  • Inline script/style blocking for assets without registered handles
  • Inline block detection — see every inline <script> and <style> on the page
  • Rule groups for managing sets of rules as a unit
  • Full audit log of all changes
  • JSON import/export
  • Zero performance overhead on pages with no matching rules

Compatible with: WP Rocket, W3 Total Cache, LiteSpeed Cache, WP Super Cache, WooCommerce, Elementor, Divi, WP Bakery, basically everything WP related.

Requirements: PHP 8.0 or higher is required. The plugin uses modern PHP features (union types, match expressions, named functions) that are not available in PHP 7.x.

Note: It’s recommended to test changes on a staging environment before applying them to a live site. Unloading the wrong assets can break your site’s appearance or functionality.

  1. Upload the plugin files to /wp-content/plugins/code-unloader
  2. Activate the plugin through the Plugins screen in WordPress
  3. Visit any page while logged in as an admin and click ⚡ Assets in the Admin Toolbar
  4. Toggle off any asset — a rule creation dialog will appear

سوالات متداول

What PHP version do I need?

PHP 8.0 or higher. The plugin will not activate on PHP 7.x.

Will my rules survive a cache flush?

Yes. Rules are stored in a custom database table and are not affected by caching plugin cache clears.

What is the kill switch?

The kill switch is a one-click emergency recovery button in Settings > Code Unloader > Settings. When active, all rules are bypassed and every asset loads normally. Your rules are not deleted — they resume when you deactivate the kill switch.

What does the ?wpcu parameter do?

Appending ?wpcu to any frontend URL will automatically open the asset panel for logged-in administrators, even on pages where the Admin Toolbar is hidden. The parameter stays in the URL while the panel is open and is removed when you close it.

What does the ?nowpcu parameter do?

Appending ?nowpcu to any frontend URL disables all Code Unloader rules for that single request — the page loads exactly as if the plugin were not active. This follows the same convention as ?nowprocket (WP Rocket) and ?ao_noptimize=1 (Autoptimize). Useful for testing, debugging, or performance scanning tools that need to measure the raw unoptimized asset baseline.

Does it support regex?

Yes. When creating a rule, choose Regular Expression as the match type. Patterns are validated before saving, and a regex warning is shown to help you keep patterns specific.

What are inline blocks?

Inline blocks are <script> and <style> tags that are printed directly into the page HTML rather than being registered through WordPress’s enqueue system. The Inline Blocks tab in the panel detects and lists these blocks so you can identify them.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
هیچ نسخه‌ای برای این آیتم موجود نیست.
★★★★★
★★★★★
5.0 /5 (1 نظر)

قیمت:

رایگان

نگارش

آخرین انتشار

17 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 6.2+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

PHP 8.0+

نسخه ها

0 نسخه