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).
The Solution :
1. Go to VS Code Settings -> in the search box type “stub”
Then scroll to the bottom and click on “Add Item”
Then choose “wordpress” and click “OK”
And like magic all “Red error hilites are missing”
Happy WordPress coding everyone!!!
This post has 0 like.