Post Detail

May 7, 2026 in Business

WP Code Snippet Manager

Plugin Purpose

A WordPress code snippet plugin for adding PHP, CSS, JavaScript, header/footer scripts, body-end scripts, Elementor/builder code, importers, backups, and conditional execution.


Development Features / Changelog

Initial Version

Features:

  • Add/edit/delete snippets
  • PHP snippet support
  • CSS snippet support
  • JavaScript snippet support
  • Admin snippet manager
  • Enable/disable snippets
  • Basic location controls

Advanced Snippet Conditions

Features:

  • Run snippets only on selected pages/posts
  • Run snippets only on selected post types
  • Run for logged-in users
  • Run for guests
  • Run for specific user roles
  • Run on WooCommerce product pages
  • Run on cart/checkout/account pages
  • Run on mobile or desktop
  • Run by URL contains/excludes rules

Cloud Backup / Export Stage

Features:

  • Export all snippets as JSON
  • Import snippets from JSON
  • Auto backup before editing
  • Restore previous backup
  • Download single snippet as file
  • Bulk export selected snippets

Error Protection / Auto Disable

Features:

  • Detect fatal PHP snippet errors
  • Auto-disable broken snippet
  • Show admin notice
  • Save error message
  • Prevent full site crash where possible

Header/Footer Script Manager

Features:

  • Header script location
  • Footer script location
  • Body end location
  • GA/GTAG slot
  • Meta Pixel slot
  • Custom tracking code areas
  • Safer script output

Importers Section

Features:

  • Elementor code importer
  • Builder code importer
  • Existing code import tools
  • Code categorization options

Fix Stages

Reported issues fixed/planned:

  • Snippet not saving
  • Save error display
  • Admin form issues
  • Body end location added
  • Importer section expanded