Snippetz v2.3.0: External Minified Files, File Combination and more
Every WordPress site accumulates code snippets over time — analytics scripts, custom CSS, verification tags, tracking pixels. I built WebberZone Snippetz (formerly Add to All) to manage this without touching theme files or juggling multiple plugins.
Version 2.3.0 addresses something I’ve been thinking about for a while: what happens when you’re managing dozens of snippets and page load performance starts to matter.
The problem isn’t having snippets. It’s how they’re delivered. Inline output is convenient during development, but once you’re running ten or fifteen active snippets, you’re adding weight to every page render. I wanted a way to shift that processing cost — generate minified files once, serve them efficiently, and give you proper control over when regeneration happens.
External Minified Files
The plugin now lets you generate external minified CSS and JS files instead of outputting everything inline. Each snippet gets its own .min.css or .min.js file stored in your uploads directory under snippetz/.
Head to Snippetz → Settings → General and enable Enable external CSS/JS files. Your snippets will be minified and saved as static files, then enqueued properly via wp_enqueue_style and wp_enqueue_script.
This change may seem uninteresting until it’s needed. If you’re running a few snippets, inline output works well. However, once you reach double digits, using external files is much more efficient.
File Combination
Beyond individual minified files, you can now combine all CSS snippets into a single combined.min.css and all JS snippets into a single combined.min.js. Turn on Enable file combination under the same General settings tab.
One HTTP request instead of fifteen. That alone cleans things up considerably.
The combined files regenerate automatically when you save a snippet, but you can force regeneration from the new Tools page if needed.
Tools Page
Version 2.3.0 adds a dedicated Tools page under Snippetz → Tools.
What you get:
- System Information — plugin version, WordPress version, PHP version, snippets status.
- Combined File Stats — file paths, URLs, sizes, and last modified timestamps for your combined CSS and JS files.
- Clear Generated Assets — wipe all cached and generated files in one click.
- Regenerate Assets — force regeneration of combined files and individual snippet files.
- Export/Import Settings — export your plugin configuration as JSON, import it on another site.
I specifically chose to separate this from the main settings screen. Tools are operational tasks, not configuration. They belong in their own space.
Shortcode Class Attribute
The [ata_snippet] shortcode now accepts a class attribute:
Useful when you need to style or target a specific snippet output without wrapping it in additional markup.
Architecture Improvements
Several internal changes improve reliability and execution order, aligning with my other plugins.
- Updated to the latest version of WebberZone Settings API.
- Improved internal hook management via Hook Registry.
- Reorganised plugin architecture with strict namespaces and autoloading.
- Applied the global snippet_priority option to the wp_head and wp_footer hooks for better execution order control.
- Custom CSS (Header CSS setting) is now enqueued via wp_add_inline_style instead of a raw <style> tag, following WordPress best practices.
- CSS/JS snippets are now exclusively enqueued via wp_enqueue_scripts, eliminating redundant processing during wp_head/wp_footer that could cause incorrect output timing.
- Admin column styles are now enqueued via wp_add_inline_style on admin_enqueue_scripts, rather than a raw <style> tag in admin_head.
The enqueuing changes are the real structural improvement here. I moved everything to wp_enqueue_scripts and stopped processing snippets directly in wp_head and wp_footer. Your stored content stays untouched, but the render pipeline is cleaner now.
If you’ve been using WebberZone Snippetz to manage your site’s code, this update should make things noticeably cleaner. If you’re new to it, this is a good time to consolidate your scattered snippets into one place.

