PHPStorm and WordPress project errors
You need to reference WordPress code in some way. Few possible approaches:
- Add as External Library -- perfect for referencing only:
Settings | PHP | Include paths
- Add as part of the project itself (careful, as in this case WP code will be used during Search/Refactor/etc operations) --
Settings | Directories | Add Content Root
- Symbolic link somewhere in the project (but #2 is still better for your case)