claude-code-lsps icon indicating copy to clipboard operation
claude-code-lsps copied to clipboard

Add wordpress-intelephense plugin

Open circuitfive opened this issue 8 months ago • 0 comments

Summary

  • Adds a wordpress-intelephense plugin — Intelephense with WordPress stubs enabled
  • The base intelephense plugin 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 intelephense plugin
  • 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 metadata
  • wordpress-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 docs
  • README.md — updated with new plugin entry

circuitfive avatar Mar 11 '26 06:03 circuitfive