Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.2 KB

README-header.md

File metadata and controls

38 lines (27 loc) · 1.2 KB

wordpress-code-snippets

A collection of WordPress PHP snippets, documented one page at a time.

Docs: https://managingwp.github.io/wordpress-code-snippets/

Quick start

  1. Open the docs and pick a snippet.
  2. Copy its .php file into your site:
    • mu-plugin → wp-content/mu-plugins/
    • plugin → wp-content/plugins/<name>/
    • snippet → WP Codebox or another snippet manager
  3. Read the snippet page before deploying: it lists the version, the type and the status.

Status legend

Status Meaning
✅ Complete Verified working.
🚧 WIP Partly working, expect changes.
❌ Broken Known broken, kept for reference.
❓ Unknown Not verified, or the header has no status.

Contributing

Every snippet carries a header (Plugin Name, Description, Version, Type, Status). Add or change a snippet, then regenerate the docs and commit both:

./generate-readme.sh

Commit messages use conventional commits. Full guide: https://managingwp.github.io/wordpress-code-snippets/contributing/add-a-snippet