superhuit/wp-graphql-redirection

Exposes Redirection WP plugin in the WP-GraphQL schema

v1.1.0 2023-06-05 14:09 UTC

This package is auto-updated.

Last update: 2024-04-05 15:50:48 UTC


README

Exposes Redirection plugin in the GraphQL schema.

Requirements

Install and Activate

WPGraphQl Redirection is a WordPress Plugin. YOu must then have a running WordPress instance with both WPGraphQL and Redirection plugins installed and activated.

Installing From Github

To install the plugin from Github, you can download the latest release zip file, upload the Zip file to your WordPress install, and activate the plugin.

Click here to learn more about installing WordPress plugins from a Zip file.

Installing from Composer

composer require superhuit/wp-graphql-redirection

Example

query getAllRedirections {
  redirections {
    code
    target
    url
  }
}

query getTheRedirection($uri: String!) {
  redirections(uri: $uri) {
    code
    target
    url
  }
}