Block Logic – Full Block Display Control
Block Logic adds a "Block Logic" field to the block editor, that lets you show or hide any block based on conditions.
Mit Vorsicht verwenden
Block Logic works, but test it on a staging site before relying on it in 2026. It runs on 300+ sites, is rated 5/5 and was last updated 6 months ago, and scores 49/100 on our health check.
- Kleine Benutzerbasis (300+ aktive Installationen)
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Block Logic stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| Block | >100 |
| conditional | >100 |
| conditions | >100 |
| logic | #8 |
| visibility | >100 |
Versionsübernahme
Anteil aktiver Sites pro Release.
Bewertungsaufschlüsselung
★★★★★★★★★★ 5 from 13 reviews
About Block Logic – Full Block Display Control
From the official readme · v2.1.6Beschreibung
Block Logic adds a “Block Logic” field to the “Advanced” section of the block editor (i.e Gutenberg), that lets you show or hide any block based on conditions. You can use WordPress’ Conditional Tags or any general PHP code.
Show or hide blocks based on
- User role
- User login status
- Post status
- Date and time
- The result of a custom PHP function
Merkmale
- Show or hide any block using conditions
- Combine conditions with “and” or “or” operators. See FAQ Writing Logic Code
- Full flexibility: use any condition you want (you can extend base functionality with filters)
Limitations
Does not work with the Classic Block, Widget Block or Widget Area Block [‘core/freeform’, ‘core/legacy-widget’, ‘core/widget-area’], as the those blocks do not support block attributes. Does also not work with the HTML Block [‘core/html’] inside the Widget Screen, as this one also does not support block attributes there.
Konfiguration
Just activate the plugin. The “Block Logic” textbox will then appear in the “Advanced” section of the Gutenberg editor.
Breaking changes since 2.0.0
Since version 2.0.0 the code does not get eval’d directly, but there is a whitelist of allowed functions that can be extended via a filter.
Upgrade Notice
When upgrading to version 2.x you will need to update your logic. No return is allowed anymore and no semicolons in code as only expressions are evaluated. See FAQ Section Writing Logic Code.
Änderungsprotokoll
2.1.6
Fixed a dependency and tested with 7.0.
2.1.5
Raised version to show updated readme.txt
2.1.4
Raised version to show updated readme.txt
2.1.3
Raised version to show updated readme.txt
2.1.2
Raised version to show updated readme.txt
2.1.1
Raised version to show updated readme.txt
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.
Best Block Logic alternatives
Alle Block-Plugins →Fragen und Antworten
Block Logic: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is Block Logic free?
Yes. Block Logic is free to download and use from the official WordPress.org plugin directory.
Is Block Logic safe to use in 2026?
Block Logic works, but test it on a staging site before relying on it in 2026. It runs on 300+ sites, is rated 5/5 and was last updated 6 months ago, and scores 49/100 on our health check.
How many websites use Block Logic?
Block Logic is active on 300+ WordPress websites and has been downloaded 6,970 times since it launched in January 2020. It was downloaded 254 times in the last 30 days.
Does Block Logic work with WordPress 7.1?
Block Logic is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Block Logic need?
Block Logic requires PHP 8.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Block Logic last updated?
The latest version, 2.1.6, was released on May 30, 2026 (6 months ago).
Who makes Block Logic?
Block Logic is developed and maintained by landwire.
What are the best alternatives to Block Logic?
The most popular alternatives to Block Logic are Spectra Legacy (1M+ installs), Breadcrumb NavXT (700K+ installs) and PDF Embedder (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

