Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not recognize all the basic functions. #3107

Open
zadepark opened this issue Oct 29, 2024 · 2 comments
Open

does not recognize all the basic functions. #3107

zadepark opened this issue Oct 29, 2024 · 2 comments

Comments

@zadepark
Copy link

zadepark commented Oct 29, 2024

Describe the bug
does not recognize all the basic functions.

To Reproduce
class areyoupayingattention
{

function __construct()
{
    add_action("enqueue_block_editor_assets", [$this, "adminassets"]);
    
}

Expected behavior
Recognize the function and explain

Screenshots
Screenshot 2024-10-29 at 3 02 57 AM

Platform and version
OS and Intelephense version.

@bmewburn
Copy link
Owner

bmewburn commented Oct 29, 2024

How are you providing the wordpress symbol definitions? Is wordpress src in your open folder? Or have you added wordpress to intelephense.stubs? Or are you providing the symbols some other way?

@ChrisTaylorDeveloper
Copy link

ChrisTaylorDeveloper commented Nov 2, 2024

I am having a similar issue. I am using neovim. I have configured intelephense in lua like this

        intelephense = {
          stubs = { 'wordpress' },
        },

all the WordPress functions are 'Undefined function ...'. How can I configure the Intelephense WordPress stubs properly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants