Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

2
Is it possible to integrate WordPress into a project with a WP install that lives in Docker?
Post Body

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?

Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,125
Link Karma
983
Comment Karma
4,129
Profile updated: 3 days ago
Posts updated: 7 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 months ago