Skip to content

superhuit-agency/wp-graphql-redirection

Repository files navigation

WP GraphQL Redirection

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
  }
}

About

Exposes Redirection plugin in the GraphQL schema.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages