Today I Learned - Rocky Kev

TIL how to get WordPress functions working in VSCode

POSTED ON:

TAGS:

WordPress has a bunch of built-in functions/hooks to help with development.

But right out of the box, with the PHP Intelephense Extension for VSCode, it'll still give errors for WordPress code.

For WordPress Devs using VSCode,
You have to manually add wordpress as a stub.

REF:
https://stackoverflow.com/questions/59890854/vs-code-highlighted-all-my-wordpress-function-name


Related TILs

Tagged:

TIL VScode bracket formatting for PHP

Intelephense -> Format: Braces: k&r

TIL how to get WordPress functions working in VSCode

Right out of the box, PHP Intelephense Extension for VSCode will give errors for WordPress code. How to fix.

TIL the hotkey for collapsing all codeblocks within VSCode

Have multiple cursors