
內容簡介
這個外掛創建了一個 GraphQL 物件和相關字段,用於在 WordPress 上使用 Redirection 外掛創建的轉向。它是為了在 GatsbyJS 上使用而開發的,但應該與其他 GraphQL 應用相容。
請注意,消費應用程序需要額外的代碼來處理這些字段並創建轉向。對於 Gatsby 項目,請查看我們在 Gatsby 插件庫中的相關 Gatsby 外掛。
請還注意,Redirection 提供的許多轉向規則可能對無頁面應用不適用。例如,基於用戶是否已登錄的轉向規則。此外掛預設提供所有這些規則,由您的消費應用程序處理不同類型的規則。
這不是 Redirection 的官方擴展。Redirection 定向也可通過 Redirection REST API 使用。
此外掛需要 Redirection 外掛和 WPGraphQL 外掛。
外掛標籤
開發者團隊
原文外掛簡介
This plugin creates a graphQL object and related fields for redirects created with the Redirection plugin for WordPress. It was developed for use with GatsbyJS, but should be compatible with other graphQL applications.
Please note that additional code in the consuming application is needed to process these fields and create redirects. For Gatsby projects, check out our related Gatsby plugin in the Gatsby plugin library.
Please also note that many redirect rules provided by Redirection may not be applicable for a headless app. For example, redirect rules based on whether a user is logged in. This plugin provides all of those rules by default, it is up to your consuming application to handle the different types.
This is not an official extension of Redirection. Redirection redirects are also available via the Redirection REST API.
This plugin requires the Redirection plugin and the WPGraphQL plugin.
