PHPStorm and WordPress project errors PHPStorm and WordPress project errors wordpress wordpress

PHPStorm and WordPress project errors


You need to reference WordPress code in some way. Few possible approaches:

  1. Add as External Library -- perfect for referencing only: Settings | PHP | Include paths
  2. 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
  3. Symbolic link somewhere in the project (but #2 is still better for your case)