Plugin Directory

Code Snippets

An easy, clean and simple way to add code snippets to your site.

1.7.1.2

  • Correct path to admin menu icon (#)

1.7.1.1

  • Fix a minor bug with custom capabilities and admin menus

1.7.1

  • Fix a bug with snippet being set as deactivated when saved
  • Updated PHP Documentation completely. View online
  • Only load admin functions when viewing dashboard
  • Added German translation thanks to David Decker
  • Allow or deny site administrators access to snippet admin menus. Set your preference in the Enable Administration Menus setting under the Settings > Network Settings network admin menu.
  • Improve database table creation and upgrade process
  • Optimized to use less database queries

1.7

  • Improved plugin API
  • Fixed a bug with saving snippets per page option (#)
  • Updated CodeMirror to version 3.11
  • Allow plugin to be activated on individual sites on multisite (#)
  • Slimmed down the description visual editor
  • Added icon for the new MP6 admin UI (#)
  • Strip PHP tags from the beginning and end of a snippet in case someone forgets
  • Changed to MIT license
  • Removed HTML, CSS and JavaScript CodeMirror modes that were messing things up
  • Made everything leaner, faster, and better

1.6.1

  • Fixed a bug with permissions not being applied on install (#)
  • Fixed a bug in the uninstall method (#)

1.6

  • Updated code editor to use CodeMirror 3
  • Improved compatibility with Clean Options plugin
  • Code improvements and optimization
  • Changed namespace from cs to code_snippets
  • Move css and js under assets
  • Organized CodeMirror scripts
  • Improved updating process
  • Current line of code editor is now highlighted
  • Highlight matches of selected text in code editor
  • Only create snippet tables when needed
  • Store multisite only options in site options table
  • Fixed compatibility bugs with WordPress 3.5

1.5

  • Updated CodeMirror to version 2.33
  • Updated the 'Manage Snippets' page to use the WP_List_Table class
    • Added 'Screen Options' tab to 'Manage Snippets' page
    • Added search capability to 'Manage Snippets' page
    • Added views to easily filter activated, deactivated and recently activated snippets
    • Added ID column to 'Manage Snippets' page
    • Added sortable name and ID column on 'Manage Snippets' page (#)
  • Added custom capabilities
  • Improved API
  • Added 'Export to PHP' feature (#)
  • Lengthened snippet name field to 64 characters (#)
  • Added i18n

1.4

  • Added interface to Network Dashboard
  • Updated uninstall to support multisite
  • Replaced EditArea with CodeMirror
  • Small improvements

1.3.2

  • Fixed a bug with version 1.3.1

1.3.1

  • Changed plugin website URI
  • Cleaned up some code

1.3

  • Added export option to 'Manage Snippets' page
  • Added 'Import Snippets' page

1.2

  • Minor improvements
  • Added code highlighting
  • Removed 'Uninstall Plugin' page
  • Data will now be cleaned up when plugin is deleted through WordPress admin

1.1

  • Fixed a permissions bug with DISALLOW_FILE_EDIT being set to true (#)
  • Fixed a bug with the page title reading 'Add New Snippet' on the 'Edit Snippets' page
  • Fixed a bug not allowing the plugin to be Network Activated (#)

1.0

  • Stable version released.

Requires: 3.3 or higher
Compatible up to: 3.6
Last Updated: 2013-5-2
Downloads: 13,199

Ratings

4 stars
4.9 out of 5 stars

Support

7 of 12 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,2,2 100,2,2
100,1,1 67,3,2 100,1,1 100,3,3 100,3,3 100,6,6 100,1,1
100,3,3
25,4,1 100,1,1 100,2,2
75,4,3 67,3,2 100,1,1