Code Snippets Pro (Premium)
PluginManage custom WordPress code in one dashboard. Create PHP and HTML snippets, preview code, track snippet totals and reuse code across sites.
- 0 stars
- 0 watching
- 0 downloads
- License not declared
Show 119 versions not available yet
Releases named in the vendor’s changelog or on WordPress.org that the repository does not have yet.
-
4.1.0-beta.1 Not available yet
Added
-
4.0.0 Not available yet
Added
-
3.10.2 Not available yet
Added
-
3.10.1 Not available yet
Changed
-
3.10.0 Not available yet
Added
-
3.9.6 Not available yet
Fixed
-
3.9.5 Not available yet
Fixed
-
3.9.4 Not available yet
Added
-
3.9.3 Not available yet
Added
-
3.9.2 Not available yet
Changed
-
3.9.1 Not available yet
Changed
-
3.9.0 Not available yet
Added
-
3.9.0-beta.2 Not available yet
Added
-
3.9.0-beta.1 Not available yet
Added
-
3.8.2 Not available yet
Fixed
-
3.8.1 Not available yet
Added
-
3.8.0 Not available yet
Added
-
3.7.1-beta.3 Not available yet
Added
-
3.7.1-beta.2 Not available yet
Added
-
3.7.1-beta.1 Not available yet
Added
-
3.7.0 Not available yet
Added
-
3.6.9 Not available yet
Changed
-
3.6.8 Not available yet
Added
-
3.6.7 Not available yet
Added
-
3.6.6.1 Not available yet
Fixed
-
3.6.6 Not available yet
Changed
-
3.6.5.1 Not available yet
Redeployment of v3.6.5 to overcome issue with initial build.
-
3.6.5 Not available yet
Added
-
3.6.4 Not available yet
Added
-
3.6.3 Not available yet
Added
-
3.6.2 Not available yet
Removed
-
3.6.1 Not available yet
Fixed
-
3.6.0 Not available yet
Added
-
3.5.1 Not available yet
Fixed
-
3.5.0 Not available yet
Added
-
3.4.2 Not available yet
Fixed
-
3.4.1 Not available yet
Added
-
3.4.0 Not available yet
Added
-
3.3.0 Not available yet
Added
-
3.2.2 Not available yet
Fixed
-
3.2.1 Not available yet
Added
-
3.2.0 Not available yet
Added
-
3.1.2 Not available yet
Changed
-
3.1.1 Not available yet
Added
-
3.1.0 Not available yet
Added
-
3.0.1 Not available yet
Fixed
-
3.0.0 Not available yet
Added
-
2.14.6 Not available yet
Fixed
-
2.14.5 Not available yet
Fixed
-
2.14.4 Not available yet
Fixed
-
2.14.3 Not available yet
Fixed
-
2.14.2 Not available yet
Added
-
2.14.1 Not available yet
Added
-
2.14.0 Not available yet
Added
-
2.13.3 Not available yet
Added
-
2.13.2 Not available yet
Removed
-
2.13.1 Not available yet
Added
-
2.13.0 Not available yet
Added
-
2.12.1 Not available yet
Changed
-
2.12.0 Not available yet
Added
-
2.11.0 Not available yet
Added
-
2.10.2 Not available yet
Added
-
2.10.1 Not available yet
Fixed
-
2.10.0 Not available yet
Added
-
2.9.6 Not available yet
Added
-
2.9.5 Not available yet
Changed
-
2.9.4 Not available yet
Changed
-
2.9.3 Not available yet
Fixed
-
2.9.2 Not available yet
Fixed
-
2.9.1 Not available yet
Fixed
-
2.9.0 Not available yet
Changed
-
2.8.7 Not available yet
Added
-
2.8.6 Not available yet
Fixed
-
2.8.5 Not available yet
Added
-
2.8.4 Not available yet
Fixed
-
2.8.3 Not available yet
Added
-
2.8.2 Not available yet
Fixed
-
2.8.1 Not available yet
Changed
-
2.8.0 Not available yet
Changed
-
2.7.3 Not available yet
Changed
-
2.7.2 Not available yet
Changed
-
2.7.1 Not available yet
Added
-
2.7.0 Not available yet
Added
-
2.6.1 Not available yet
Changed
-
2.6.0 Not available yet
Added
-
2.5.1 Not available yet
Fixed
-
2.5.0 Not available yet
Added
-
2.4.2 Not available yet
Added
-
2.4.1 Not available yet
Fixed
-
2.4.0 Not available yet
Added
-
2.3.0 Not available yet
Added
-
2.2.3 Not available yet
Added
-
2.2.2 Not available yet
Added
-
2.2.1 Not available yet
Fixed
-
2.2.0 Not available yet
Added
-
2.1.0 Not available yet
Added
-
2.0.3 Not available yet
Changed
-
2.0.2 Not available yet
Removed
-
2.0.1 Not available yet
Fixed
-
2.0 Not available yet
Highlights
Readme
LicenseCode Snippets Pro (Premium)
Manage custom WordPress code in one dashboard. Create PHP and HTML snippets, preview code, track snippet totals and reuse code across sites.
Code Snippets gives you a dedicated WordPress dashboard for creating, organising and managing custom code. Add PHP functionality and reusable HTML content, choose where PHP snippets run, and activate or deactivate snippets individually.
Find snippets with search, tags and filters, switch between table and card views, and preview code without opening the editor. Lock important snippets to help prevent accidental changes, and use the Stats overview to see snippet totals and breakdowns.
Watch the Code Snippets 4.0 walkthrough
See the plugin in use, including features from both the free and Pro editions. The Pro features listed below require the relevant Pro access.
https://www.youtube.com/watch?v=q-QT9PXw2eQ
Want AI-assisted code creation and advanced controls? Code Snippets Pro adds the AI Agent, snippet revisions, visual display conditions, CSS and JavaScript snippets, and connected Cloud workflows.
Your snippets stay separate from your theme files. Browse Community Cloud for shared snippets, and use import and export to reuse your code across sites.
Code Snippets has been available on WordPress.org since 2012 and is active on 1 million+ WordPress installations.
Included in the free plugin
- PHP snippets without editing theme files. Add custom functions and WordPress hooks from your dashboard.
- Reusable HTML content. Create content snippets and insert them into posts and pages with shortcodes.
- Control where PHP runs. Choose everywhere, administration only or front end only. Run-once snippets are available for manually confirmed one-time tasks.
- A built-in code editor. Work with syntax highlighting, code checking and adjustable editor preferences.
- Organised snippet management. Use names, descriptions, tags, search, filters, sorting and bulk actions. Browse in table or card view, preview code without opening the editor, and lock important snippets to help prevent accidental edits or deletion.
- Stats overview. View snippet totals, active and inactive counts, and breakdowns by type, run location and tags.
- Import and export. Move snippets between sites using export files, or export PHP snippets as a PHP file for use without the plugin.
- Community Cloud browsing. Search community-shared snippets from inside WordPress and download supported snippet types.
- Optional file-based execution. Execute supported snippets from generated files instead of evaluating their code from the database.
- Multisite support. Manage network-wide snippets and separate snippets for individual sites.
- Safe Mode and feedback tools. Use Safe Mode to troubleshoot snippet-related failures. An optional feedback reporter can be enabled in settings.
PHP snippets execute code on your site. Only use code you trust, review it before activation and keep a current backup. Safe Mode helps with recovery; it does not make every snippet safe or guarantee that every error can be prevented.
Community-powered Code Snippets Cloud
Browse the community-powered Code Snippets Cloud library from inside WordPress. Search user-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. Personal Cloud library, synchronisation and deployment workflows require a connected account and the relevant Pro access.
Code Snippets Pro
Code Snippets Pro extends the free plugin with additional code types, editing tools and connected workflows:
- CSS and JavaScript snippets, with dedicated integration for Gutenberg and Elementor.
- AI Agent. Describe the functionality you need, review and refine a proposed plan, then approve code generation. Review the generated snippets before activating them.
- Snippet revisions. Compare a previous version with the current code and restore an earlier revision.
- Display conditions. Define where and when snippets run through a visual condition editor.
- Form-based Blueprints. Generate PHP code for common tasks such as custom post types, taxonomies, shortcodes, settings pages and extra user profile fields.
- Role-based permissions. Control access to viewing, creating, editing and deleting snippets.
- Ran on this page. See which snippets executed or produced output on the current request through the admin bar.
- Performance and security insights. Optional PHP execution-time tracking and advisory checks for potentially risky code patterns. These checks are not a security audit or a guarantee that code is safe.
- Connected Cloud workflows. Manage your personal Cloud library, synchronise snippets and deploy snippets to connected sites, with drift reporting when site and Cloud copies differ.
Cloud-connected Pro features require the appropriate licence and a connected Code Snippets Cloud account. Local PHP and HTML snippets do not require a Cloud account. The free plugin includes interactive demos of selected Pro workflows; using the full tools requires Pro access.
Documentation and community
- Documentation
- WordPress.org support forum
- Facebook community
- Discord community
- Source code and feature requests
Share your experience
Find Code Snippets useful? Leave a review on WordPress.org to share your experience and help others decide whether the plugin suits their needs.
Translation Credits
Thank you to everyone who helps make Code Snippets available in different languages. See the translation contributors or contribute a translation.
What it adds
- 2 block(s):
- WP-CLI:
cs-discover, snippet
Installation
Automatic Installation
- Open Plugins > Add New and search for Code Snippets.
- Click Install Now, then Activate.
- Open the Snippets menu to add or manage your code.
Manual Installation
- Download and unzip the plugin.
- Upload the
code-snippetsdirectory towp-content/plugins/. - Activate Code Snippets from the Plugins screen.
Multisite Installation
Network activate the plugin to manage network-wide snippets from Network Admin. Individual sites can also have their own snippets. Network snippets must be activated or shared with the appropriate settings; simply creating a network snippet does not make it run everywhere.
Faq
How can I recover my site if a snippet causes an error?
Use Code Snippets Safe Mode to prevent snippet execution while you investigate the problem. Follow the Safe Mode instructions for the appropriate recovery method, then fix or deactivate the affected snippet.
Will I lose my snippets if I change theme or update WordPress?
Snippets are stored separately from your theme in the WordPress database, so changing theme or updating WordPress does not remove them. Code that depends on a particular theme or plugin may still need updating when that dependency changes.
Can the plugin be completely uninstalled?
Enable Complete Uninstall under Snippets > Settings > Advanced before deleting the plugin through WordPress's Plugins screen if you want stored snippets and plugin settings removed. Export snippets you want to keep first. Leave Complete Uninstall disabled if you want to retain your snippet data when deleting the plugin.
Can I copy snippets to another site?
Yes. Export a single snippet or select several snippets and use the export bulk action. Import the resulting file through the Snippets import screen on the other site.
Can I export snippets to PHP for a site without Code Snippets?
Yes. Select the PHP snippets, choose Export to PHP from the bulk actions and apply it. The generated file contains the exported code, with snippet names and descriptions in comments. Review the file before including it in a theme or plugin.
Can I run snippets across a multisite network?
Yes. Network activation provides a network-level Snippets screen. Activate a network snippet to run it across the network, subject to its execution scope. Individual sites can also have separate snippets, and shared network snippets can be enabled per site where configured.
Where are snippets stored in the database?
Local snippets use the site's table prefix followed by snippets, for example wp_snippets on a single site or wp_2_snippets on a subsite. Network snippets use the network's base prefix followed by ms_snippets, for example wp_ms_snippets. Your actual prefix may differ.
When optional file-based execution is enabled, the plugin also creates files used to execute snippets. Continue managing those snippets through the plugin.
Where can I get help or request a feature?
Use the documentation or WordPress.org support forum for help. Report bugs and suggest improvements on GitHub, or discuss ideas in the Facebook and Discord communities.
How can I contribute?
Code Snippets is developed on GitHub. Bug reports, pull requests and translations are welcome.
How do I report a security issue?
Report suspected security vulnerabilities privately through the Patchstack Vulnerability Disclosure Program. Do not disclose vulnerability details in a public GitHub issue or support topic.
What is new in Code Snippets 4.0?
The free 4.0 release adds the Stats overview and fixes issues with snippet saving feedback, description truncation, Elementor compatibility and translation loading.
The free plugin also includes table and card views, code preview, HTML content snippets and optional file-based execution.
Pro 4.0 adds the AI Agent and snippet revisions, alongside its additional code types, conditions, permissions, Blueprints and connected Cloud tools. See the Pro section above for the current feature split.
Can I add HTML, CSS and JavaScript snippets?
The free plugin supports PHP snippets and HTML content snippets. Dedicated CSS and JavaScript snippet types, plus the additional Gutenberg and Elementor integrations, are available in Pro.
Do I need a Cloud account?
No account is required to create and run local PHP and HTML snippets. Community Cloud provides access to shared snippets from within the plugin. Personal Cloud library, synchronisation and connected Pro workflows require an account and the relevant Pro access.
Will I need to recreate my existing snippets after updating?
No. Updating the plugin does not require you to recreate your stored snippets. Back up your site and test your custom code when updating WordPress, your theme or other plugins. Compatibility still depends on the code you use and its dependencies.
Can I switch to an earlier plugin version?
Users with permission to update plugins can open Snippets > Settings > Advanced and use Switch Version to choose an available version. Use Refresh Versions if the list needs updating. Back up your site and export important snippets before switching versions.
Screenshots
- Managing local snippets in table view.
- Creating a PHP snippet in the code editor.
- Browsing local snippets in card view.
- Stats overview with snippet totals and breakdowns.
- Browsing Community Cloud snippets, with Pro-only items clearly marked.
- Importing snippet export files with duplicate-handling options.
Upgrade Notice
4.0.0
Adds the Stats overview and fixes saving feedback, description display, Elementor compatibility and translation notices. Back up your site before updating.
Install
composer require meteorgpl-plugin/code-snippets-pro
The vendor’s license checks are intact: activate the plugin in WordPress with a license key bought from the vendor.
License
The plugin declares no license. The code is redistributed under the license the vendor declared in the plugin’s own headers.
Artwork, fonts, media and documents that may be licensed separately are not redistributed; the licensing page explains what is replaced or removed, and the security tab lists it per version. Support and update entitlement come with the license you buy from the vendor.