Skip to content

Conversation

@jasonbahl
Copy link
Collaborator

What does this implement/fix? Explain your changes.

This adds the WPGraphQL for Yoast SEO to the extensions page registry.

Smoke Tests

I've verified basic functionality with the plugin.

With the following environment:

WordPress 6.7.1
PHP: 8.2.23
WPGraphQL v1.29.3
WPGraphQL Yoast SEO Addon v4.23.2
Yoast SEO v24.2

I was able to create a post with some SEO data:

CleanShot 2025-01-16 at 12 40 47

And I was able to query the SEO data for the post:

CleanShot 2025-01-16 at 12 41 38

Here's the full query I used:

query GetPostWithSEOFields {
  post(id:83 idType:DATABASE_ID) {
    id
    databaseId
    seo {
      ...PostTypeSEO
    }
  }
}

fragment PostTypeSEO on PostTypeSEO {
  canonical
  metaKeywords
  metaDesc
  title
}

And the payload I received:

{
  "data": {
    "post": {
      "id": "cG9zdDo4Mw==",
      "databaseId": 83,
      "seo": {
        "canonical": "http://wpgraphql.local/test-slug/",
        "metaKeywords": "",
        "metaDesc": "Test meta description",
        "title": "SEO Post Test - wpgraphql"
      }
    }
  }
}

Conclusion

The plugin appears to work as advertised, provides documentation, has regular maintenance and offers support via WordPress.org and Github

@jasonbahl jasonbahl merged commit 0199e70 into wp-graphql:feat/3049-extensions-page-fix Jan 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant