Expose redirects set up in Redirection plugin to GraphQL API.
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.