• Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • Chinese
    • English
FREE ANALYSIS
  • Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • Chinese
    • English
FREE ANALYSIS
  • Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • Chinese
    • English

Zero Blocks Given

  • Home
  • Trends
  • Zero Blocks Given
Zero Blocks Given
  • 2026-05-30
  • by LethaldiranMX
  • Trends
  • 0 Comments
Zero Blocks Given
Developer MythThrazz
Version v1.2.2
Active Installs 0 +
Requires / Tested 6.0 / 7.0
Last Updated 2026-05-30 10:26am GMT
Official Link View Details →
Turn off WooCommerce / WP block frontend output at the code level. Four tiers, optional one-click settings, no paywall.

Most WooCommerce stores ship 80-150 KB of block CSS and JS that the store never actually renders. The WC BlockPatterns scanner is the one that bugs me most – it hits the filesystem on every request to scan a directory of pattern templates you don’t use. Then add core WP global-styles, wp-block-library and font-faces on top, and you’re loading a Gutenberg frontend you probably switched off a long time ago.

Zero Blocks Given turns it off at the source, through WooCommerce’s own dependency injection container. No CSS dequeue band-aid, no UI checkboxes, no PRO upsell. One constant in wp-config.php, pick a tier, done.

How it works

Here’s the thing – WC registers its block hooks as closures wrapping instance methods on container-managed objects. So you can’t remove_action() them by string. You have to fetch the same instance back from the DI container and pass it in as the callable. That’s what this does:

$bp = AutomatticWooCommerceBlocksPackage::container()->get( BlockPatterns::class );
remove_action( 'init', [ $bp, 'register_block_patterns' ] );

The DI-container path is the one that survives WC upgrades cleanly. String-callback matching and dequeue tricks tend to drift every release, so I went with the container.

Four modes. Three ways to set them.

Mode
What it turns off
When to use it

patterns
WC BlockPatterns directory scanner only
Block-based Cart/Checkout – keeps all blocks rendering, just skips the file-I/O scan

blocks
patterns + BlockTypesController + Notices styles + wc-blocks-style handle
Classic-shortcode WC stores

all
blocks + WP global-styles pipeline + theme.json + font-faces + head <style> strip
Sites with no Gutenberg frontend at all

nuclear
all + unregister_block_type() for every core block
Page-builder sites – strips the editor inserter clean

Default is all. Set the mode you want with any of these:

  1. The <dialog> settings – click the Settings link on the Plugins screen. Native HTML dialog, four radios, save. No menu items, nothing else added to your admin.
  2. A constant in wp-config.php – define( 'ZEROBLG_MODE', 'patterns' );. This wins over the dialog. Good devops escape hatch.
  3. A filter in a theme or mu-plugin – add_filter( 'zeroblg/mode', fn() => 'blocks' );. Used when neither the constant nor the dialog set a value.

Resolution order: constant, then settings, then filter, then all. An invalid value at any step just falls through to the next.

A few real cases

  • Service-form site on WC. You sell consultations, not products – no cart, no checkout. mode=all strips every block stylesheet across the site.
  • Classic-shortcode WC store. You use [woocommerce_cart] and [woocommerce_checkout], no block UI. mode=blocks turns off the block frontend without touching your classic flow.
  • Block-checkout store with bloated patterns. You run the new Cart/Checkout blocks but never the WC pattern library. mode=patterns skips just the directory scanner – saves the disk hit, leaves your checkout alone.
  • FrankenPHP / worker mode. All hooks are idempotent, no $GLOBALS writes, Throwable catches around the DI lookups. Safe in a worker.
  • Elementor / Divi WC stores. The page builder renders its own checkout, so mode=all clears the WC and WP block CSS your theme never uses anyway.

Why I built it this way

  • Activate it and it works – mode=all is the default, no setup needed.
  • No settings page to learn. One constant or one filter is the whole API.
  • Pure PHP. No database rows, no admin scripts, no frontend JS.
  • No external requests, no tracking, nothing phoning home. GDPR is a non-issue.
  • It uses the same Package::container() lookup as WC core, so it follows WC’s own object lifecycle instead of guessing.
  • Worker-safe – FrankenPHP, Roadrunner, Swoole. No die, no exit, no session writes.
  • mu-plugin friendly. Drop the folder into wp-content/mu-plugins/ and it loads itself.
  • GPL, no upsells. No PRO tier, no Freemius, no admin notice nagging you for a review.

From the maker of WP Multitool

This plugin handles the frontend block bloat. If you also want the backend cleaned up, that’s what WP Multitool does – slow queries, autoload bloat, the database bottlenecks that caching plugins just hide instead of fixing. Most optimization plugins guess at the problem. WP Multitool runs EXPLAIN and shows you. 14 tools in there – slow-query analyzer, autoload optimizer, index suggestions, fatal-error recovery – and a free site scanner if you want to see what’s slow before paying for anything. If Zero Blocks Given earned a spot in your stack, that one probably will too.

  • disable blocks,
  • gutenberg,
  • optimization,
  • performance,
  • woocommerce,
  • wordpress plugin
Previous Post

Kwizera Power Posts Series

Next Post

WPFalcons Email Notifications for LearnDash

Leave a Comment 取消回复

您的邮箱地址不会被公开。 必填项已用 * 标注

Categories

  • Thoughts (1)
  • Trends (1,242)
  • Tutorials (1)

Recent Posts

2026-10-14
Agrunert E-Rechnung for ZUGFeRD
2026-10-13
Rotascore Live Scores Widget
2026-10-12
Ettrick Escape Room Booking
2026-10-11
Qrlastica – QR Code Generator with
2026-10-10
Anchormender – Internal Link Suggestions, Orphan

归档

  • 2026 年 10 月
  • 2026 年 9 月
  • 2026 年 8 月
  • 2026 年 7 月
  • 2026 年 6 月
  • 2026 年 5 月
  • 2026 年 4 月

标签

accessibility admin AI analytics automation backup blocks booking calendar chat chatbot checkout contact form contact form 7 content customer support ecommerce elementor forms GDPR GEO gutenberg lead generation live chat llms.txt login openai optimization payment gateway performance popup privacy products rest-api Schema security SEO shipping shortcode support tracking whatsapp widget woocommerce wordpress plugin
  • shape1
  • shape2
  • shape3
  • shape4
  • shape5
  • shape6
  • shape7

Newsletter SignUp!

    About Us

    GROWTH,ARCHITECTED.
    Empowering global brands through data-driven SEO, high-performance web development, and AI-forward strategies.

    Information

    • Extensions
    • Strategies
    • Creatives
    • Plugins

    Services

    • AI & Strategy
    • Growth Marketing
    • Operations & CRO
    • Tech & Analytics

    Office Address

    • Nan'an District, Chongqing
    • +86-133-1028-2690
    • [email protected]
    • +86-133-1028-2690
    © Copyright AEOSUB 2026 | Digital Growth & Full-stack Operations
    • Home
    • About
    • Case Study
      • Case Study 1
      • Case Study 2
      • Case Study 3
      • Case Study 4
      • Case Study 5
    • Elements
      • Blog
        • Blog Post 1
        • Blog Post 2
        • Blog Post 3
        • Blog Post 4
        • Blog Post 5
        • Blog Post 6
      • Service
        • Service Gallery 1
        • Service Gallery 2
        • Service Gallery 3
        • Service Gallery
        • Service Gallery 5
      • Team
        • Team Gallery 1
        • Team Gallery 2
        • Team Gallery 3
      • Testimonial
        • Testimonial – 1
        • Testimonial – 2
        • Testimonial – 3
      • Contact Info Box
        • Contact Info Box 1
        • Contact Info Box 2
      • Info Box
        • Info Box 1
        • Info Box 2
        • Info Box 3
      • Miscellaneous
        • Brand Showcase
        • Counter 1
        • Progress Bar
        • Progress Box Image
        • Radius Button
        • Section Title Subtitle
      • Pricing
        • Pricing Plan 1
        • Pricing Plan 2
        • Pricing Plan 3
        • Pricing Plan 4
        • Pricing Plan 5
    • Pages
      • Service
        • Service Archive
      • Case Study
        • Case Study Archive
        • Single Case Study 1
        • Single Case Study 2
        • Single Case Study 3
      • Team
        • Team Gallery 1
        • Team Gallery 2
        • Team Gallery 3
      • Typography
      • 404 Error
    • Blog
      • Blog 1
      • Blog 2
      • Blog 3
    • Contact
    Follow Us
    FREE ANALYSIS
    • Home
    • Services
      • Col 1
        • Tech & Analytics
        • Web Development
        • Technical Audit
        • Analytics & Tracking
      • Col 2
        • Growth Marketing
        • SEO Strategy
        • SEM & PPC
        • Social Growth
      • Col 3
        • AI & Strategy
        • Al Search (GEO)
        • SEO Content
        • Growth Consulting
      • Col 4
        • Operations & CRO
        • Conversion (CRO)
        • AI Automation
        • Full-stack Ops
    • Projects
      • Strategies
      • Plugins
      • Extensions
      • Creatives
    • Insights
    • About
    • Contact
    • Chinese
      • English
    Follow Us