This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm new to developing with Docker. I'm used to installing the WordPress core for each of my projects that use WordPress, but I wanted to get away from that and try something more dynamic. I recently discovered wp-env, which is powered by Docker and makes setting up a local WP dev environment super easy. With wp-env, your local project folder doesn't need to have the core WP files, so you can more easily concentrate on building a plugin or theme. The problem with using it in PhpStorm is that there doesn't seem to be a way to integrate the Docker-hosted WP install, so there's no way to get things like code hints, completions, etc., for the core WP functions, classes, and hooks. It's really neat how WP integration means I can jump from a hook name to any of the callbacks that use that hook, but I can't figure out how to get this integration without locally installing the core files.
Yes, PhpStorm has a Docker plugin that I've figured out how to configure to connect to the container, and yes, I have set my PHP interpreter for my project to come from the container. But when it comes to WP integration under Frameworks, all it asks for is a path, and that's where I'm stumped. I tried entering the path of my project, but that was no good. Is what I'm asking for even possible?
Subreddit
Post Details
- Posted
- 9 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/phpstorm/co...