All Codes: Managing Snippets

WP Coder → All Codes lists every snippet. From here you open, switch on and off, organise, duplicate, export and delete snippets — one at a time or in bulk.

The list does the same job in both plugins; WP Coder Pro adds views, more columns and search in code. The free plugin’s list is described in WP Coder (free) at the end of this page.


Views PRO#

Above the list, the views split your snippets by state, each with a count:

  • All — every snippet.
  • Live — active snippets everybody sees.
  • Admins only — active snippets in test mode: they run, but only administrators see them.
  • Off — switched-off snippets.

Columns#

Column What it shows
Title The on/off switch (click it or press Space; a notice offers Undo; an Off row is dimmed), the pin icon, a lock icon if someone else has the snippet open, the title (or Untitled), an Admins only badge in test mode, your private note, and the row actions on hover.
Shortcode A button that copies [wp_code id="12"], plus Copy with attributes when the snippet has attributes.
Displays PRO Where the snippet is inserted automatically: — (shortcode only), Everywhere, or the first rule with +N for the rest, then the HTML Location when it is not the footer and the conditions in force.
Code PRO Badges for the tabs that hold code — HTML, CSS, JS, PHP — or empty.
Tag The snippet’s tags. Click one to filter the list by it.

Title, Displays and Tag are sortable. Pinned snippets always lead the list, within the current search and filters.


Row actions#

Hover a row to see:

  • Edit — open the snippet.
  • Test mode on / off — run the snippet for administrators only, or for everyone again.
  • Duplicate — create a full copy (same code and settings) to experiment on.
  • Export — download this snippet as a .json file. See Import / Export.
  • Delete — remove the snippet permanently. The confirmation names the snippet (Delete #12 "Hero" permanently?) and its revision history is removed too.

The pin icon before the title pins the snippet to the top of the list, or unpins it.


Search and filters#

  • Search looks in titles. A number finds the snippet with that ID; Untitled finds snippets without a title.
  • Search in code PRO — tick it to search the HTML, CSS, JS and PHP as well.
  • Filter by tag — show only snippets with a given tag.
  • Clear filters / Clear search PRO reset the list.

Views, search, tag filter and sorting combine, and they are kept after a bulk action. To change text inside many snippets at once, use Search & Replace. PRO


Bulk actions#

Tick snippets (or the header checkbox for the whole page) and choose an action:

Action Effect
Switch on / Switch off Activate or deactivate the snippets. Combined CSS/JS files that include them are rebuilt.
Test mode on / Test mode off Run them for administrators only, or for everyone.
Pin to top / Unpin Keep them at the top of the list.
Combine CSS on / off, Combine JS on / off PRO Merge their CSS or JS into the per-page combined files. See CSS Code.
Export Download the selected snippets as one .json file.
Delete Remove them permanently.

After the action the page reloads with a notice (“3 snippets deactivated.”) and your filters intact. Refreshing the page doesn’t repeat the action.


Tags and notes#

  • Tags are set in the editor’s sidebar. A snippet can have several, separated by commas (landing, hero). Use them to group snippets by project, client or purpose — then filter the list, export a whole tag, or limit Search & Replace to it.
  • A note (sidebar → Add a note) is a private reminder shown under the title here. It is never printed on the site.

See Editor Screen & Sidebar.


Screen Options PRO#

Screen Options (top right) sets how many snippets a page shows.


WP Coder (free)#

The free plugin’s list has the same search, tag filter, pins, notes, row actions and bulk actions, laid out a little differently:

  • No views — the Status and Test mode columns show each snippet’s state as an ON / OFF switch; click it to change the state.
  • Columns: Title (with the pin, note and row actions — the row also shows the snippet’s ID), Shortcode, Alternative Shortcode ([wp_code title="Hero"], found by title), Tags, Test mode and Status.
  • Bulk actions are named Activate / Deactivate and Test mode ON / OFF; the rest are the same.
  • The list shows 30 snippets per page, newest first.