這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

評價

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” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 localhost2host.docker.internal 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄