In the Settings/Preferences dialog ( Ctrl+Alt+S), navigate to PHP. To add WordPress to your project as an external library, you need to add it to the list of include paths. Configure the WordPress installation as a project include path If the wp-content folder is outside the WordPress installation, it needs to be added either as an include path or as a content root. As a result, the WordPress core file will be involved in indexing, which is the basis for resolving references and providing code completion, navigation, search, and so on. To take advantage of coding assistance provided by PhpStorm, the WordPress installation you are working with should be configured in the project as an external library. PhpStorm provides full coding assistance for developing WordPress including WordPress-aware code completion, search for hook registration functions and functions specified as hook registration parameters, navigation between hook registrations and the hook invocations, callbacks, the possibility to configure the coding style in accordance with the WordPress code style, viewing the official WordPress documentation from the PhpStorm editor, and so on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |