WordPress plugin
Code Snippets Pro
Code Snippets Pro extends a WordPress dashboard for managing custom code as individual snippets. The base add-on works with PHP snippets and reusable HTML content; Pro adds more code types and utilities for working with them. Your snippets stay separate from theme documents, so you can manage site changes without placing every addition in functions.php.
Code Snippets Pro extends a WordPress dashboard for managing custom code as individual snippets. The base add-on works with PHP snippets and reusable HTML content; Pro adds more code types and utilities for working with them. Your snippets stay separate from theme documents, so you can manage site changes without placing every addition in functions.php.
Organize and run snippets
Create snippets in the dashboard, then find and review them using names, descriptions, tags, search, filters and sorting. Table and card views, code previews, bulk actions and snippet locking help with day-to-day management. The Stats overview shows totals and breakdowns by type, run location and tags.
PHP snippets can run everywhere, in administration only or on the front end. Manually confirmed run-once snippets are available for one-time tasks, and reusable HTML content can be inserted into posts and pages with shortcodes. Local snippets are stored in the WordPress database, separate from your theme, so changing themes or updating WordPress does not remove them. Code that depends on a particular theme or extension may still need changes when that dependency changes.
Pro tools for code workflows
Pro adds CSS and JavaScript snippet types, with integrations for Gutenberg and Elementor. Its AI Agent lets you describe the functionality you need, review and refine a proposed plan, then approve code generation. Review generated snippets before activating them. Form-based Blueprints can generate PHP for common tasks such as custom post types, taxonomies, shortcodes, settings pages and extra visitor profile fields.
Use snippet revisions to compare earlier code with the current version and restore a previous revision. The visual show-condition editor controls where and when snippets run. Role-based permissions let you control who can view, make, edit and delete snippets. The Ran on this page view in the admin bar shows snippets that executed or produced output on the current request.
Optional PHP execution-time tracking and advisory checks can help you review code. These checks are not a security audit and do not guarantee that code is safe.
Choose how to use Cloud
You can browse the community-powered Code Snippets Cloud library inside WordPress, search and preview shared snippets, and download types supported by your edition. Creating and running local PHP and HTML snippets does not require a Cloud account. A personal Cloud library, synchronization and deployment to connected websites require an account and the relevant Pro access. Cloud tools can also report when a website's snippets differ from their Cloud copies.
Move and recover your work
Export one snippet or use a bulk action to export several, then import the file through the Snippets import screen on another site. PHP snippets can also be exported to a PHP file with their code, names and descriptions in comments. Optional file-based execution runs supported snippets from generated files instead of evaluating their code from the database. The plugin also supports multisite, with network-wide and individual-site snippets subject to their activation and execution settings.
PHP snippets execute code on your site. Use code you trust, review it before activation and keep a current backup. Safe Mode can help you prevent snippet execution while investigating a snippet-related failure, but it cannot guarantee that every error is prevented.
To remove stored snippets and plugin settings when deleting the plugin, enable Complete Uninstall under Snippets settings before deleting it from the WordPress Plugins screen. Export anything you want to keep first. To get started, activate the plugin, open the Snippets screen, add code and use the available controls to manage it.