Descrizione
✂ Code Snippets ti dà la possibilità di migliorare senza sforzi il tuo sito WordPress.
🚀 Effettua l’upgrade a Code Snippets Pro per integrazioni complete con CSS, JavaScript, Gutenberg, Elementor e la sincronizzazione in clodu. Porta subito ad un altro livello la tua esperienza con gli snippet!
Di’ addio ai problemi di modifica del file functions.php del tuo tema e agli infiniti download di plugin – Code Snippets semplifica il processo!
Uno snippet è come un mini-plugin per il tuo sito WordPress, che ti fornisce funzionalità aggiuntive senza ingombro.
A differenza di altre soluzioni che prevedono di riversare codice all’interno del tuo file functions.php, Code Snippets offre un’interfaccia grafica intuitiva per un’integrazione senza ostacoli ed un’esecuzione in tempo reale. La gestione degli snippet è tanto facile quanto attivare e disattivare un plugin, ma senza congestionamenti e sovraccarichi.
🎥 Guarda una veloce panoramica realizzata da Imran Siddiq:
☁️ Ogni copia di Code Snippets include una piena integrazione con la piattaforma alimentata dalla comunità Code Snippets Cloud, fornendoti un accesso semplificato a centinaia di modifiche e migliorie pronte all’uso per potenziare qualsiasi sito WordPress.
🌐 Entra in connessione con noi:
🌟 Ti piace il nostro plugin? Lo trovi utile? Prendi in considerazione l’idea di scrivere una recensione su WordPress.org. Il tuo feedback è molto utile per dare forma ai nostri futuri sviluppi!
🌍 Vogliamo ringraziare di cuore le fantastiche persone che hanno aiutato contribuendo alle traduzioni, per permettere a Code Snippets di essere utilizzato in diverse lingue. Puoi trovare la lista completa qui.
Screenshot
Installazione
Installazione automatica
- Accedi al tuo pannello amministratore di WordPress
-
Fai clic su Plugin
-
Fai clic su Aggiungi nuovo
-
Cerca Code Snippets
-
Fai clic su Installa ora sotto “Code Snippets”
- Attiva il plugin
Installazione manuale
- Scarica il plugin
- Estrai il contenuto del file zip
- Carica il contenuto del file zip nella cartella
wp-content/plugins/della tua installazione di WordPress - Attiva il plugin Code Snippets dalla pagina ‘Plugin’.
Attivare Code Snippets sul network attraverso la bacheca del network abiliterà un’interfaccia speciale per eseguire gli snippet sull’intero network.
FAQ
Un elenco completo delle nostre domande frequenti è disponibile su help.codesnippets.pro.
-
Come posso recuperare il mio sito se viene bloccato da uno snippet difettoso?
-
Puoi recuperare il tuo sito abilitando la funzionalità di modalità sicura di Code Snippets. Le istruzioni su come attivarla sono a tua disposizione qui: https://help.codesnippets.pro/article/12-safe-mode.
-
Perderò i miei snippet se cambio il tema o aggiorno WordPress?
-
No, gli snippet sono archiviati nel database di WordPress, indipendentemente dal tema e non interessati dagli upgrade di WordPress.
-
Il plugin può essere completamente disinstallato?
-
Se abiliti l’opzione ‘Disinstallazione completa’ nella pagina delle impostazioni del plugin, Code Snippets rimuoverà tutti i suoi dati quando sarà eliminato attraverso il menu ‘Plugin’ di WordPress. Ciò include anche tutti gli snippet memorizzati. Se vuoi conservare gli snippet assicurati di esportarli prima.
-
Posso copiare gli snippet che ho creato su un altro sito WordPress?
-
Sì! Puoi esportare individualmente un singolo snippet utilizzando il link sotto il nome dello snippet nella pagina ‘Tutti gli snippet’, oppure esportare in massa più snippet utilizzando la funzionalità ‘Azioni di gruppo’. Gli snippet possono essere successivamente importati utilizzando la pagina ‘Importa snippet’ caricando il file di esportazione.
-
Posso esportare i miei snippet in PHP per un sito in cui non sto utilizzando il plugin Code Snippets?
-
Sì. Fai clic sui checkbox accanto agli snippet che desideri esportare, quindi scegli Esporta in PHP dal menu Azioni di gruppo e fai clic su Applica. Il file PHP generato conterrà il codice degli snippet esportati, nonché il loro nome e la descrizione nei commenti.
-
Posso eseguire snippet a livello di network su un’installazione multisito?
-
Puoi eseguire snippet su un intero network multisito attivando sul network Code Snippets tramite la bacheca del network. Puoi anche attivare Code Snippets solo sul sito principale, e poi singolarmente su altri siti di tua scelta.
-
Dove sono archiviati gli snippet nel mio database WordPress?
-
Gli snippet sono memorizzati nella tabella
wp_snippetsdel database di WordPress. Il nome della tabella può variare a seconda di come è impostato il tuo prefisso di tabella. -
Dove posso chiedere aiuto o suggerire nuove funzionalità?
-
Puoi ottenere assistenza con Code Snippets, segnalare bug o errori e suggerire nuove funzionalità e miglioramenti sui Forum di supporto di WordPress o su GitHub
-
Come posso contribuire allo sviluppo del plugin Code Snippets?
-
Il modo migliore per farlo è eseguire il fork del repository su GitHub e inviare una richiesta pull.
-
Come posso segnalare bug di sicurezza trovati in questo plugin?
-
Puoi segnalare bug di sicurezza trovati nel codice sorgente di questo plugin attraverso il Patchstack Vulnerability Disclosure Program. Il team di Patchstack ti assisterà con la verifica, il triage e la notifica delle vulnerabilità di sicurezza.
Recensioni
Contributi e sviluppo
“Code Snippets” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.
Collaboratori“Code Snippets” è stato tradotto in 28 lingue. Grazie ai traduttori per i loro contributi.
Traduci “Code Snippets” nella tua lingua.
Ti interessa lo sviluppo?
Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.
Changelog
3.8.2 (2025-10-31)
Fixed
- Improved namespaced PHP snippet handling with file based execution.
3.8.1 (2025-10-28)
Added
- Code line explanation widget with apply and remove actions for AI-generated comments. (PRO)
Changed
- Improved pagination handling and display structure for cloud search results. (PRO)
- Enhanced styling for codevault rows and inactive tabs in cloud interface. (PRO)
Removed
- Removed
guzzlehttp/guzzledependency to reduce package conflicts. (PRO)
Fixed
- Improved file-based snippet handling for multisite installations.
3.8.0 (2025-10-24)
Added
- @CarolinaOP and @louiswol94 join the team as plugin contributors.
- File-based execution mode for snippets (Optional in Plugin Settings).
- Version switch option, to help easily rollback the plugin to an earlier release.
- Minor UI improvements to the editor and sidebar.
Changed
- Prefixed Composer packages to reduce collisions with other plugins.
- Snippets REST API now supports pagination via page and per_page query parameters.
- Improved editor preview behavior.
Fixed
- Fixed issues with snippet evaluation and front-end initialization in edge cases.
- Improved reliability of snippet evaluation.
- JavaScript and CSS snippets loading twice due to a conditions bug. (PRO)
- Fixed issue where some conditions didn’t work due to loading before the loop. (PRO)
3.7.0 (2025-08-29)
Added
- New ‘conditions’ feature: control where and when snippets execute with a powerful logic builder. (PRO)
Changed
- Redesigned edit menu with refreshed look and functionality.
- Updated snippet type badges to be more visually distinct.
- Redesigned tooltips used throughout the plugin.
- Moved content snippet shortcode options into separate modal window.
- Updated snippet tag editor to use built-in WordPress tag editor.
- Created proper form for sharing beta feedback.
- Improved UX of snippet activation toggle.
Fixed
- Fetching active snippets on a multisite network now respects the ‘priority’ field above all else when ordering snippets.
- Cloud search appears correctly and allows downloading snippets in the free version of Code Snippets.
- Improved performance of loading admin menu icon.
3.6.9 (2025-02-17)
Changed
- Updated
Cloud_API::get_bundles()to properly check bundle data and return an empty array if no valid bundles are present. - Refactored
Cloud_List_Table::fetch_snippets()to always return a validCloud_Snippetsinstance. - Cleaned up bundle iteration code and improved translation handling in the bundles view.
Fixed
- Fixed errors in bundle iteration by adding a check for the bundles array before iterating.
3.6.8 (2025-02-14)
Added
code_snippets/hide_welcome_bannerfilter hook for hiding welcome banner in dashboard.
Changed
- Updated Freemius SDK to the latest version. (PRO)
Removed
- Functionality allowing
[code_snippet]shortcodes to be embedded recursively – it will be re-added in a future version.
Fixed
- Shortcodes embedded within
[code_snippet]shortcodes not evaluating correctly. - Translation functions being called too early in some instances when loading plugin settings.
- ‘Generate’ button not appearing on some sites. (PRO)
- Incorrect arrow entity used in cloud list table (props to [brandonjp]).
- Removed reference to missing plugins.css file in core plugin version.
3.6.7 (2025-01-24)
Added
- Generated snippet shortcode tags will include the snippet name, for easier identification.
- Admin notices will dismiss automatically after five seconds. (#208)
Changed
- Updated CSS to use latest Sass features.
- Moved theme selector to just above editor preview on settings page (thanks to brandonjp). (#206)
[code_snippet]shortcodes can now be nested within each other. (#198)
Fixed
- Save buttons above editor did not follow usual validation process in Pro. (PRO) (#197)
- Minor inconsistencies in consistent UI elements between Core and Pro.
- Tags input not allowing input. (#211)
- Issue with Elementor source code widget. (PRO) (#205)
- Snippet descriptions not visible when viewing cloud search results.
- Snippet import page not displaying number of successfully imported snippets.
- Use UTC time when deciding when to display campaign notices.
3.6.6.1 (2024-11-27)
Fixed
- Redeployment of v3.6.6 to overcome issue with initial build.
- Type issue when caching cloud links. (PRO)
3.6.6 (2024-11-27)
Changed
- Improved compatability with modern versions of PHP.
- Extended welcome API to include admin notices.
Fixed
- Memory issue from checking aggregate posts while loading front-end syntax highlighter.
- Translation functions being called too early on upgrade, resulting in localisation loading errors.
- Bug preventing the ‘share on network’ status of network snippets from correctly updating.
- Incorrect logic controlling when to display ‘Save Changes’ or ‘Save Changes and Activate’ buttons.
- Old notices persisting when switching between editing and creating snippets.
3.6.5.1 (2024-05-24)
- Redeployment of v3.6.5 to overcome issue with initial build.
3.6.5 (2024-05-24)
Added
- New admin menu providing useful resources and updates on the Code Snippets plugin and community.
3.6.4 (2024-03-15)
Added
- AI generation for all snippet types: HTML, CSS, JS. (PRO)
- Button to create a cloud connection directly from the Snippets menu when disconnected. (PRO)
Changed
- Increment the revision number of CSS and JS snippet when using the ‘Reset Caches’ debug action. (PRO)
- UX in generate dialog, such as allowing ‘Enter’ to submit the form. (PRO)
Fixed
- Minor type compatability issue with newer versions of PHP.
- Undefined array key issue when initiating cloud sync. (PRO)
- Bug preventing downloading a single snippet from a bundle. (PRO)
- Translations not loading for strings in JavaScript files.
3.6.3 (2023-11-13)
Added
- Added debug action for resetting snippets caches.
Fixed
- Import error when initialising cloud sync configuration. (PRO)
3.6.2 (2023-11-11)
Removed
- Removed automatic encoding of code content.
Fixed
- Error when attempting to save shared network snippets marked as active.
- Type error when rendering checkbox fields without a stored or default value.
- Label for snippet sharing input incorrectly linked to input field.
- Error when attempting to download export files from Edit menu.
- Issue loading Freemius string overrides too early. (PRO)
- Fix redirect URL when connecting with OAuth on subdirectory or HTTPS sites. (PRO)
- Import error when attempting to completely uninstall the plugin.
3.6.1 (2023-11-07)
Fixed
- Issue accessing fields on Snippets class.
3.6.0 (2023-11-07)
Added
- Ability to authenticate with Code Snippets Cloud using OAuth. (PRO)
- Integration with GPT AI for generating snippets. (PRO)
- Ability to generate line-by-line descriptions of snippet code with GPT AI. (PRO)
- Ability to generate tags and description text from existing snippet code with GPT AI. (PRO)
- Added debug settings menu for manually performing problem-solving actions.
- Filter to disable scroll-into-view functionality for edit page notices.
Changed
- Updated minimum PHP requirement to 7.4.
- Ensure that the URL of the edit snippet page changes when adding a new snippet.
- Snippet tags will automatically be added when focus is lost on the tags field.
Fixed
- Moved active status border on edit name field to left-hand side.
- New notices will not scroll if already at top of page.
- Potential CSRF vulnerability allowing an authenticated user to reset settings.
3.5.1 (2023-09-15)
Fixed
- Undefined array key error when accessing plugin settings page. (PRO)
- Issue registering API endpoints affecting edit post screen. (PRO)
- Snippet ID instead of snippet object being passed to
code_snippets/update_snippetaction hook.
3.5.0 (2023-09-13)
Added
- Added: Support for the Code Snippets Cloud API.
- Search and download public snippets.
- Codevault back-up and synchronisation. (PRO)
- Synchronised local snippets are automatically updated in Cloud. (PRO)
- Bulk actions – ‘update’ and ‘download’.
- Download snippets from public and private codevaults. (PRO)
- Search and download any publicly viewable snippet in Code Snippet Cloud by keyword or name of codevault. (PRO)
- Deploy snippets to plugin from Code Snippets Cloud app. (PRO)
- Bundles of Joy! Search and download Snippet Bundles in one go direct from Code Snippets Cloud. (PRO)
Changed
- Redirect to snippets table when deleting snippet from the edit menu.
- Scroll new notices into view on edit menu.
Fixed
- Error when attempting to update network shared snippets after saving. [#]




