superhuit / wp-graphql-redirection
Exposes Redirection WP plugin in the WP-GraphQL schema
Installs: 809
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- php: ^7.4 || ^8.0
Requires (Dev)
- wp-graphql/wp-graphql: ^1.8
- wpackagist-plugin/redirection: ^5.3
README
Exposes Redirection plugin in the GraphQL schema.
Requirements
- Requires PHP 7.4+
- Requires WordPress 5.0+
- Requires WP-GraphQL 1.8+
- Requires Redirection 5.0+
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 } }