Skip to content

Add wordpress-intelephense plugin#31

Open
circuitfive wants to merge 1 commit intoboostvolt:mainfrom
ignitionwp:add-wordpress-intelephense
Open

Add wordpress-intelephense plugin#31
circuitfive wants to merge 1 commit intoboostvolt:mainfrom
ignitionwp:add-wordpress-intelephense

Conversation

@circuitfive
Copy link

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

Intelephense with WordPress stubs enabled. The base intelephense plugin
does not include WordPress stubs, so WordPress core functions like
add_action, get_post, wp_nonce_field, etc. are reported as undefined.

This plugin adds "wordpress" to the built-in stubs list alongside all
69 default PHP stubs, giving accurate diagnostics in WordPress projects.

Users install this instead of the base intelephense plugin.
@boostvolt boostvolt self-requested a review March 13, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant