Saber Snippets Plugin

Saber Snippets is a free plugin for rendering code snippets in a WordPress site. It is a free WordPress plugin distributed under the GPL3 license.

File Reference


Main plugin file. Provides a template_include hook to provide the single-snippet.php template for snippet posts.


Single page template default for singular snippet posts.

Repo Install

Saber Snippets is a free WordPress plugin distributed under the GPL3 license. Developers can download the source files or a distribution release from the public GitHub repo at

Install Steps

  1. Download the latest release of the Saber Snippet Plugin from Github repository at
  2. Extract the downloaded ZIP file to a folder on your computer.
  3. Connect to your WordPress website using your web hosting control panel’s file manager.
  4. Navigate to the /wp-content/plugins/ directory on your Wordpress site.
  5. Upload the extracted Saber Snippets folder to the /wp-content/plugins/ directory.
  6. Log in to your WordPress admin dashboard.
  7. Navigate to Plugins > Installed Plugins.
  8. Locate the Saber Snippet plugin in the list and click the “Activate” link.

Q2, April - June 2023

In the next release scheduled for ~end of March the plugin will contain the ACF field exports and will bundle the Code Field to support sites that do not have ACF Engine or another code field providing utility.

There are plans in place to add a snippets category custom taxonomy in order to enable users to better organize their code snippets.

Creating a Snippet

To create a new code snippet, follow these steps:

  1. Navigate to Saber Snippets > Add New in your WordPress admin dashboard.
  2. Enter a title for your code snippet.
  3. Enter a description of the snippet in the Gutenberg content body.
  4. Enter your code in the code editor area.
  5. Click the “Publish” button to save your snippet.

Editing a Snippet

To edit an existing code snippet, follow these steps:

  1. Navigate to Saber Snippet > All Snippets in your Wordpress admin dashboard.
  2. Find the snippet you want to edit and click the “Edit” link below its title.
  3. Make the desired changes to the snippet.
  4. Click the “Update” button to save your changes.

Importing & Exporting

Snippets can be exported or imported using WordPress importer and exporter plugins. These are optional plugins that you can add to your site, look for them in the WP Admin under WP Admin > Tools.