Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wordpress-intelephenseplugin — Intelephense with WordPress stubs enabledintelephenseplugin does not include WordPress stubs, so WordPress core functions (add_action,get_post,wp_nonce_field, etc.) are reported as undefined"wordpress"to the stubs list alongside all 69 default PHP stubsintelephensepluginWhy 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