🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
Script Logic icon
Möglicherweise aufgegeben Tested up to 3.9.40

Script Logic

This plugin lists all JavaScripts and Style sheets with a control field that lets you control CSS & JavaScript files to include only on the pages where you actually need them. The text field lets you use WP’s…

Aktive Installationen10+10+ Stufe
Downloads · 30d48▲ +54.8% vs prev. 30d
Wertung3/52 Bewertungen
Gesundheits-Score24/100In Gefahr
Downloads aller Zeiten2.8KSeit Juni 2014
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 2.8PHP ANY
Downloads · 7d10▼ -28,6% Woche für Woche
Unser Urteil

Betrachten Sie eine Alternative

Script Logic shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 3/5 and was last updated 12 years ago, and scores 24/100 on our health check.

  • Kleine Benutzerbasis (10+ aktive Installationen)
  • Bisher sehr wenige Bewertungen
  • Kein Update in 12 Jahren
  • Nur getestet bis WordPress 3.9 (letzt ist 7.1)

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

135Sep 1Oct 15Nov 29
Gestern0
Täglicher Durchschnitt (1 Jahr)1
Spitzentag714. September 2026
Letzte 12 Monate373

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where Script Logic stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
Administrator >100 10,000 Beste Admin-Plugins →
Bedingte Tags >100 1,550 Beste Conditional-Tags-Plugins →
script >100 10,000 Best script plugins →
speed >100 6,370 Best speed plugins →
style >100 10,000 Best style plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 0.3100.0%

Bewertungsaufschlüsselung

★★★★★★★★★★ 3 from 2 reviews

  • 5★50.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★50.0%

About Script Logic

From the official readme · v0.3

Beschreibung

This plugin lists all JavaScripts and Style sheets with a control field that lets you control CSS & JavaScript files to include only on the pages where you actually need them. The text field lets you use WP’s Conditional Tags, or any general PHP code.

NOTE: The script logic you introduce is evaluated directly. Anyone who has permission to manage options will have the right to add any code, including malicious and possibly destructive code. There is an optional filter ‘script_logic_eval_override’ which you can use to bypass the EVAL with your own code if needed. (See Other Notes).

Writing Logic Code

The text in the ‘Logic’ field can be full PHP code and should return ‘true’ when you need the script to load. If there is no ‘return’ in the text, an implicit ‘return’ is added to the start and a ‘;’ is added on the end. (This is just to make single statements like is_home() more convenient.)

The Basics

Make good use of WP’s own conditional tags. You can vary and combine code using:

  • ! (NOT) to reverse the logic, eg !is_home() is TRUE when this is NOT the home page.
  • || (OR) to combine conditions. X OR Y is TRUE when either X is true or Y is true.
  • && (AND) to make conditions more specific. X AND Y is TRUE when both X is true and Y is true.

There are lots of great code examples on the WP forums, and on WP sites across the net. But the WP Codex is also full of good examples to adapt, such as Test if post is in a descendent category.

Beispiele

  • is_home() — just the main blog page
  • !is_page('about') — everywhere EXCEPT this specific WP ‘page’
  • !is_user_logged_in() — shown when a user is not logged in
  • is_category(array(5,9,10,11)) — category page of one of the given category IDs
  • is_single() && in_category('baked-goods') — single post that’s in the category with this slug
  • strpos($_SERVER['HTTP_REFERER'], "google.com")!=false — script to load when clicked through from a google search
  • is_category() && in_array($cat, get_term_children( 5, 'category')) — category page that’s a descendent of category 5
  • global $post; return (in_array(77,get_post_ancestors($post))); — WP page that is a child of page 77
  • global $post; return (is_page('home') || ($post->post_parent=="13")); — home page OR the page that’s a child of page 13

Note the extra ‘;’ on the end where there is an explicit ‘return’.

The ‘script_logic_eval_override’ filter

Before the Script Logic code is evaluated for each script, the text of the Script Logic code is passed through this filter. If the filter returns a BOOLEAN result, this is used instead to determine if the script should load. Return TRUE to load.

Installation

  1. Upload plugin to the /wp-content/plugins/ directory
  2. Aktivieren Sie das Plugin über das „Plugins“-Menü in WordPress
  3. Configure the plugin at Settings -> Script Logic
  4. That’s it.

Konfiguration

On plugin configuration page you see all script and CSS files with a logic field. Lets suppose you are using Contact Form 7 plugin. You created a page Contact Us (slug = contact-us) and want to include Contact Form 7 scripts only on this page. Find the Contact Form 7 scripts on plugin’s configuration page (they have handle = contact-form-7) and put is_page('contact-us') in logic field

Änderungsprotokoll

NA

0.1

  • First stable release.

Vollständiges Änderungsprotokoll auf WordPress.org →

Screenshots

screenshot-1.png
screenshot-1.png
screenshot-2.png
screenshot-2.png

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best Script Logic alternatives

Alle Admin-Plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 Loginizer Loginizer Loginizer ist ein WordPress-Sicherheits-Plugin, das Ihnen hilft, gegen Bruteforce-Angriffe zu kämpfen. von Softaculous 1M+ ★★★★★★★★★★ 4.8 (1K) Vor 2 Wochen 91
2 Redux-Framework Redux-Framework Redux ist ein einfaches, wirklich erweiterbares und vollständig ansprechendes Options-Framework für WordPress… von David Anderson / Team-Updraft 800K+ ★★★★★★★★★★ 4.4 (273) Vor 2 Tagen 80
3 Admin-Menü-Editor Admin-Menü-Editor Ermöglicht das Bearbeiten des WordPress-Admin-Menüs. Sie können Menüs neu ordnen, ausblenden oder umbenennen, benutzerdefinierte… Von Janis Elsts 300K+ ★★★★★★★★★★ 4.6 (312) Vor 2 Wochen 80
4 Weißes Etikett CMS Weißes Etikett CMS Passen Sie das Armaturenbrett und das Branding an, verbergen Sie Menüs und vieles mehr. von Video-Benutzerhandbüchern 200K+ ★★★★★★★★★★ 4.7 (114) Vor 5 Monaten 65
5 Erweiterte benutzerdefinierte Felder: Erweitert Erweiterte benutzerdefinierte Felder: Erweitert All-in-One-Verbesserungssuite, die die WordPress- und erweiterten benutzerdefinierten Felder verbessert. Von Konrad Chmielewski 100K+ ★★★★★★★★★★ 4.8 (132) Vor 1 Monat 76
6 Verschachtelte Seiten Verschachtelte Seiten Verschachtelte Seiten bietet eine Drag-and-Drop-Oberfläche zum Verwalten von Seiten und Beiträgen in der WordPress… von Hook & Filter 90K+ ★★★★★★★★★★ 4.7 (126) Vor 6 Tagen 83
7 Ruhe deaktivieren API Ruhe deaktivieren API Deaktivieren Sie die Nutzung des Rests API auf Ihrer Website für Benutzer der Website. Jetzt mit Unterstützung der Benutzerrolle! Von Dave McHale 80K+ ★★★★★★★★★★ 4.8 (38) Vor 3 Jahren 37
8 Bedingte Menüs Bedingte Menüs Dieses Plugin ermöglicht es Ihnen, bedingte Menüs pro Posts, Seiten, Kategorien, Archiv… von thefyme 60K+ ★★★★★★★★★★ 4.4 (71) Vor 4 Monaten 62
9 Vom Server hinzufügen Vom Server hinzufügen Add From Server wurde entwickelt, um den Schmerz von schlechten Webhosts zu lindern, so dass Sie… von Dion Hulse 50K+ ★★★★★★★★★★ 4.6 (239) Vor 6 Jahren 46
10 Alles in einem Favicon Alles in einem Favicon Fügen Sie Ihrer Website und den WordPress-Administrationsseiten ganz einfach ein Favicon hinzu. Komplett mit Upload… Von Garrett Grimm 50K+ ★★★★★★★★★★ 4.5 (82) Vor 3 Jahren 46

Fragen und Antworten

Script Logic: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is Script Logic free?

Yes. Script Logic is free to download and use from the official WordPress.org plugin directory.

Is Script Logic safe to use in 2026?

Script Logic shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 3/5 and was last updated 12 years ago, and scores 24/100 on our health check.

How many websites use Script Logic?

Script Logic is active on 10+ WordPress websites and has been downloaded 2,814 times since it launched in June 2014. It was downloaded 48 times in the last 30 days.

Does Script Logic work with WordPress 7.1?

Script Logic is officially tested up to WordPress 3.9.40, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Script Logic last updated?

The latest version, 0.3, was released on July 10, 2014 (12 years ago).

Who makes Script Logic?

Script Logic is developed and maintained by Tahir Yasin.

What are the best alternatives to Script Logic?

The most popular alternatives to Script Logic are Loginizer (1M+ installs), Redux Framework (800K+ installs) and Admin Menu Editor (300K+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen