Egenverk Snippetsby egenverkComing

Your own code, in one place, with undo.

Snippets keeps CSS, JavaScript and PHP in blocks with targeting, revisions and a syntax check before you save.

Snippets: code blocks with targeting and revisionsCSS · whole siteJS · whole sitePHP · init · priority 10The sitecheckoutREVISIONSExample data

Egenverk Snippets (formerly Vigg3 Code Manager) is an upcoming WordPress plugin for administrators who want their own CSS, JavaScript and PHP outside the theme. The code lives in blocks with targeting, execution contexts for PHP, revision history per block and a syntax check before saving. Recovery constants switch all code off. Launch: Coming soon.

WP 5.0+PHP 7.4+

What happens in WordPress

Before
Before: code in the theme's functions.phpfunctions.php
Code in the theme's functions.php that the next update overwrites.
With SnippetsSnippets
After: blocks with on/off and historySnippets
Blocks with on/off, targeting and history.

What it does, in plain words

  • Targeting

    CSS and JS on the whole site, product pages, checkout, the cart — when and for whom.

  • PHP where it belongs

    Phase, priority and execution context: frontend, admin, AJAX, REST, cron or CLI.

  • Syntax check

    PHP is checked before saving.

  • Revisions

    History per block and for the whole set, with restore.

  • Switches itself off

    PHP blocks that fail repeatedly can be switched off automatically.

  • Recovery

    Constants switch off all code, only PHP or only CSS/JS.

  • Import and export

    JSON for everything or one block, with a dry run.

  • Templates

    Starter templates for CSS, JS and PHP, and your own templates.

Blocks you control

Choose where a CSS or JS block runs (site-wide, product pages, checkout …), when and for whom. PHP blocks run in the phase and execution contexts you choose: frontend, admin, AJAX, REST, cron or CLI. PHP is checked before you save, and every block has revision history. Everything sits under Egenverk Snippets in the admin menu.

SafeguardWhat it does
Syntax checkPHP is checked before saving
Automatic switch-offPHP blocks that fail repeatedly can be switched off
Emergency pausePauses all PHP without deleting the code
Recovery constantsSwitch off all code, only PHP or only CSS/JS
RevisionsHistory per block and restore

Snippets is coming

Get in touch and we will tell you when the plugin is ready.

Questions

When is Egenverk Snippets coming?
Coming soon.
What if a block breaks the site?
Add a recovery constant to wp-config.php, for example EGV_SNP_DISABLE_CUSTOM_PHP. No PHP from Snippets runs, and the code stays saved.

Lagom

Cleans the database, slims wp-admin and warns when requests run away. Shows counts before anything is deleted.

WP 6.5+ · PHP 7.4+Learn more
Free

Docs Viewer

README, CHANGELOG and docs/ from every plugin and theme, searchable in wp-admin. Free.

WP 5.0+ · PHP 7.4+Learn more

Babbla

Team chat in wp-admin, with an assistant that answers from WooCommerce using tools that only read.

WC 7.0+ · PHP 7.4+Learn more