feat: add the WPGraphQL Yoast SEO addon to the extensions page #3274
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
And I was able to query the SEO data for the post:
Here's the full query I used:
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