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…
Considere uma alternativa
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.
- Pequena base de usuários (10+ instalações ativas)
- Muito poucos comentários até agora
- Nenhuma atualização em 12 anos
- Only tested up to WordPress 3.9 (latest is 7.1)
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where Script Logic stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| Administrador | >100 |
| Tags condicionais | >100 |
| script | >100 |
| speed | >100 |
| style | >100 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★★★★★★ 3 from 2 reviews
About Script Logic
From the official readme · v0.3Descrição
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 Yis TRUE when either X is true or Y is true.&&(AND) to make conditions more specific.X AND Yis 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.
Exemplos
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 inis_category(array(5,9,10,11))— category page of one of the given category IDsis_single() && in_category('baked-goods')— single post that’s in the category with this slugstrpos($_SERVER['HTTP_REFERER'], "google.com")!=false— script to load when clicked through from a google searchis_category() && in_array($cat, get_term_children( 5, 'category'))— category page that’s a descendent of category 5global $post; return (in_array(77,get_post_ancestors($post)));— WP page that is a child of page 77global $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.
Instalação
- Upload plugin to the
/wp-content/plugins/directory - Ative o plugin através do menu 'Plugins' em WordPress
- Configure the plugin at
Settings -> Script Logic - That’s it.
Configuration
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
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best Script Logic alternatives
Todos os plugins de administrador →FAQ
Script Logic: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: 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).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito


