Written by James McDonald

June 27, 2020

Adding a missing function definition

Using the VS Code Intelephense Extension.

You get a squiggly line under a function you know exists.

When you hover over it the popup says “Undefined function … “

Go to Preferences and Settings [ Ctrl + , ], search for stubs and scroll to the bottom of the Extensions => intelephense stubs screen and click Add item. Enter the name of the extension and click OK

To find the name to add you need to find the extension that the function comes from and have a look at the name

WordPress Stubs

If you are developing a WordPress plugin and missing the WordPress core function definitions add wordpress to the stubs list.

0 Comments

Submit a Comment

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...