claude-code-lsps
claude-code-lsps copied to clipboard
Add wordpress-intelephense plugin
Summary
- Adds a
wordpress-intelephenseplugin — Intelephense with WordPress stubs enabled - The base
intelephenseplugin does not include WordPress stubs, so WordPress core functions (add_action,get_post,wp_nonce_field, etc.) are reported as undefined - This plugin adds
"wordpress"to the stubs list alongside all 69 default PHP stubs - Users install this instead of the base
intelephenseplugin - Includes the same auto-install hook pattern as the base plugin
- Updates README with table entry, install command, and manual install section
Why a separate plugin?
Non-WordPress PHP developers should not get WordPress stubs by default. A separate plugin keeps it opt-in while matching the repo's existing pattern of one plugin per use case.
Files
wordpress-intelephense/.claude-plugin/plugin.json— plugin metadatawordpress-intelephense/.lsp.json— Intelephense config with all default stubs +"wordpress"wordpress-intelephense/hooks/— auto-install hook (same as base plugin)wordpress-intelephense/README.md— usage docsREADME.md— updated with new plugin entry