undefined functions

WordPpress functions Highlighted as errors in VS Code

When I open my WordPress wp_content directory in VS Code and open a file. All of my functions are red highlighted (“marked as errors'” : Undefined function).

undefined functions

The Solution :
1. Go to VS Code Settings -> in the search box type “stub”

Then scroll to the bottom and click on “Add Item”

add item

Then choose “wordpress” and click “OK”

And like magic all “Red error hilites are missing”

ok

Happy WordPress coding everyone!!!

This post has 0 like.

Like this post. 👍

Leave a Comment

Your email address will not be published. Required fields are marked *