Open the project for which you’d like to enable WordPress integration.
In the Settings/Preferences dialog Ctrl+Alt+S, go to PHP | Frameworks.
On the Frameworks page that opens, expand the WordPress node and select the Enable WordPress integration checkbox.
In the WordPress installation path field, specify the folder where WordPress is installed. This folder should contain the wp-admin and wp-includes subdirectories.
Click Apply to save the WordPress registration and click PHP.
On the PHP page that opens, add the path to the WordPress installation folder to the Include Paths list: click the the Add button button and specify the path to the installation folder in the dialog that opens. Learn more in Configure include paths.