PHPStorm while develop
WordPress plugins (mainly for HTML/CSS/JS).
Each plugin is a separate
PHPStorm project since I can have several goodies from using this way.
The issue is when working on a plugin, the
WordPress functions like
_e are marked as
Warnings (yellow color) and the information
PHPStorm gives is that
"Undefined function _e"
How can I configure
PHPStorm that it understand the
WordPress functions and do not shows that errors and autocomplete the functions without to have a big project wrapping the
You need to reference WordPress code in some way. Few possible approaches:
Settings | PHP | Include paths
Settings | Directories | Add Content Root
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!Donate Us With