WordPress plugin

Code Snippets Pro

Code Snippets gives WordPress website owners a dashboard for creating and managing custom code as individual snippets. The free extension supports PHP snippets and reusable HTML content. Code Snippets Pro adds CSS and JavaScript snippet types, with dedicated integrations for Gutenberg and Elementor.

Code Snippets Pro

Code Snippets gives WordPress website owners a dashboard for creating and managing custom code as individual snippets. The free extension supports PHP snippets and reusable HTML content. Code Snippets Pro adds CSS and JavaScript snippet types, with dedicated integrations for Gutenberg and Elementor.

Organize and run code

Give snippets names, descriptions and tags, then find them with search, filters and sorting. Table and card views, code previews, bulk actions and snippet locking help with routine management. The Stats overview shows snippet 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. Reusable HTML content can be inserted into posts and pages with shortcodes. Multisite support lets you manage network-wide snippets as well as snippets for individual websites.

Pro editing and control tools

  • AI Agent: Describe the functionality you need, review and refine a proposed plan, then approve code generation. Review generated snippets before activating them.
  • Revisions: Compare a previous version with the current code and restore an earlier revision.
  • Display conditions: Use a visual editor to define where and when snippets run.
  • Blueprints: Generate PHP for common tasks such as custom post types, taxonomies, shortcodes, options pages and extra user profile fields.
  • Permissions and execution details: Set who can view, create, edit or delete snippets. The admin bar can show which snippets ran or produced output on the current request.
  • Advisory insights: Optional PHP execution-time tracking and checks for potentially risky code patterns can help with review. These checks are not a security audit and do not certify code as safe.

Cloud, import and export

Browse Community Cloud from inside WordPress to search shared snippets, preview their code and download snippet types supported by your edition. A Cloud account is not required to create and run local PHP and HTML snippets. A personal Cloud library, synchronisation and connected deployment workflows require an account and the relevant Pro access. Cloud drift reporting can show when site and Cloud copies differ.

Export one snippet or select several for a bulk export, then import the resulting file on another site. PHP snippets can also be exported to a PHP file with their names and descriptions in comments. The extension supports importing from file uploads and migrating snippets from supported add-ons.

Storage, recovery and removal

Local snippets are stored separately from the active theme in the WordPress database, so a theme change or WordPress update does not remove them. Code that depends on a particular theme or plugin may still need changes if that dependency changes. Optional file-based execution uses generated documents instead of evaluating supported snippets from the database; continue managing those snippets through the plugin.

PHP snippets execute code on your site. Use code you trust, review it before activation and keep a current backup. Safe Mode can stop snippet execution while you investigate a failure, but it cannot prevent every error. To remove stored snippets and plugin settings when deleting the plugin, enable Complete Uninstall in the advanced settings first. Export anything you want to keep; leave Complete Uninstall disabled if you want to retain the data.

Use the Snippets dashboard to create a named snippet, enter its code and description, review it, then activate it with the available controls.

WordPress Vault Glossary by Codeat PRO Gmap Block Pro GN Publisher PRO Go Live Update Urls Pro Goal Tracker for Google Analytics GA4 Pro Google XML Sitemaps Generator Pro GoSMTP Pro Graphina PRO Grid/List View for WooCommerce Premium GridKit Portfolio Premium