superhuit/wp-graphql-redirection

在 WP-GraphQL 架构中公开 Redirection WP 插件

v1.1.1 2024-09-19 15:23 UTC

This package is auto-updated.

Last update: 2024-09-19 15:24:33 UTC


README

在 GraphQL 架构中公开 Redirection 插件。

需求

安装和激活

WPGraphQl Redirection 是一个 WordPress 插件。您必须有一个运行的 WordPress 实例,其中已经安装并激活了 WPGraphQLRedirection 插件。

从 Github 安装

要从 Github 安装插件,您可以 下载最新的发布 zip 文件,将 zip 文件上传到您的 WordPress 安装中,并激活插件。

点击这里 了解如何从 zip 文件安装 WordPress 插件的更多信息。

从 Composer 安装

composer require superhuit/wp-graphql-redirection

示例

query getAllRedirections {
  redirections {
    code
    target
    url
  }
}

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