內容簡介
goMobi 是一個受歡迎的企業級行動網站解決方案,適用於各種企業規模。許多企業也使用 WordPress 作為其全尺寸網站的 CMS 解決方案。
官方的 goMobi WordPress 外掛程式使用了一種 Javascript 重定向機制,這對於基於 PHP 的 WordPress 平台來說並不是最佳解決方案。
此外掛程式包裝了官方的基於 PHP 的 goMobi 重定向程式碼,為您的 WordPress/goMobi 整合提供了一個伺服器端的重定向解決方案。
備註
疑難排解
此外掛程式使用 WordPress API 中的「init」鉤子,在瀏覽器寫入任何頁面輸出之前執行重定向。
有可能其他外掛程式也在使用相同的鉤子。當多個外掛程式註冊同一個鉤子時,外掛程式代碼的執行順序是註冊的順序。
如果您的重定向沒有起作用並且沒有產生明顯的錯誤,請嘗試降低此外掛程式的「優先級」設定,以在其他外掛程式之前執行。效果因版本而異
外掛標籤
開發者團隊
原文外掛簡介
goMobi is a popular mobile website solution for businesses of all sizes. Many businesses also use WordPress as the CMS solution for their full-size website.
The “official” goMobi WordPress plugin utilises a Javascript redirect mechanism which is not an optimal solution for the PHP-based WordPress platform.
This plugin wraps the “official” goMobi PHP-based redirect code and delivers a server-side redirect solution for your WordPress/goMobi integration.
Notes
Troubleshooting
This plugin uses the ‘init’ hook in the wordpress API to perform the redirect before any page output is written to the browser.
It is possible that another plugin is using the same hook. When multiple plugins register against the same hook, the plugin code is executed in the order in which the plugins were registered.
If your redirect is not working and there are no apparent errors being generated, try reducing the ‘Priority’ setting of this plugin in order to execute it before other plugins. YMMV
