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

Headless Mode

外掛說明

Headless mode sets up a redirect for all users trying to access the site. The only requests that are granted admission are ones that are either trying to access the REST API, the WP GraphQL API, or any logged-in user looking to access the headless install to edit or create posts.

常見問題集

How do I set it up?

Once you’ve activated the plugin, add the following line to your wp-config.php file, and save it.

define( 'HEADLESS_MODE_CLIENT_URL', 'https://hiroy.club' );

Be sure to change the URL to the actual URL for the front end of your site.

How can I contribute to this plugin?

The team behind Headless Mode accepts PRs at the plugin’s GitHub repository

If you have general questions, use the forum here or hit us up on Twitter @benUNC @jasonbahl @josh412

使用者評論

2021 年 9 月 5 日
Makes it very easy to redirect visitors to your main site.
2019 年 11 月 19 日 1 則留言
I had a simple meta-refresh in my header.php to prevent users seeing the content site, but this is way better.
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Headless Mode〉的開發相關工作。

參與者

〈Headless Mode〉外掛目前已有 4 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Headless Mode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.4.0

  • checked for compatibility with the latest WP version
  • read several hot takes from Josh on Twitter. Inaccurately attributed them to Elon Musk.
  • 33 points and several attaboys to Alex Standiford for testing this and submitting a PR. You’re the wind beneath several wings.
  • I checked again, and nobody has donated money toward the maintenance of this plugin. I’m not mad, I’m just disappointed. https://benlikes.us/donate

0.3.0

  • adds a filter named headless_mode_will_redirect so that individual requests can make it through to WP if needed.
  • fixed an issue with new installs showing a white screen for users not logged in, until a constant is set.
  • 27 additional non-refundable points for Josh starting a new job since the last release.
  • 37 points for Jason also starting a new job. Jason’s additional points are for lack of hair, and totally arbitrary.
  • I feel like more of you should be donating. Just saying. https://benlikes.us/donate

0.2.0

  • adds a filter for headless_mode_disable_front_end so that access to the front end can be granted on a per-user basis.
  • tested up to WordPress 5.5
  • 17 total new points for a relatively long time with no support issues.
  • The plugin still works like a CHARM, and none of you people have donated.

0.1.0

  • resolve PHP notice due to missing parentheses.
  • tally of 14 total points based on previous issues.
  • shameless pointing out that the points are all made up.

0.0.4

  • more changes to the readme for display on wordpress.org
  • 73% more #HiRoy. Have you said Hi to Roy today? https://hiroy.club
  • change the author URL to not be so self-serving, Ben.
  • a much needed Points review by Meagan Hanes based on the above changes is pending.

0.0.3

  • Modifications for the .org readme authors, etc.

0.0.2

  • enhancements to get it ready for the .org repo