该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Image

localhost2host.docker.internal

描述

Prevents loopback request errors in WordPress environments using Docker such as wp-env.

Replace requests to localhost with host.docker.internal, and if https, change to http and turn off sslverify.

There are no settings. Just enable this plugin.

安装

  1. Upload the localhost2host-docker-internal folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress

评价

Image
2025 年 7 月 10 日
If you have troubles in local development with wp-env, use this plugin. In your .wp-env.json , add this plugin’s download URL(NOTICE: review comment is not allowed to include URL, add https +:// just before the downloads.wordpress.org { “plugins”: [ “.”, “[schema here]downloads.wordpress.org/plugin/localhost2host-docker-internal.latest-stable.zip” ]} WordPress’ self remote request(e.g. WP-Cron) starts working as expected! Arigato!
阅读所有0条评价

贡献者及开发者

「localhost2host.docker.internal」是开源软件。 以下人员对此插件做出了贡献。

贡献者