Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

WordPress source plugins #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kennethormandy
Copy link

For the sake of getting feedback this, and keeping gatsbyjs/gatsby#5796 active, I’ve updated this RFC for adding subplugins to gatsby-source-wordpress.

WordPress is an excellent headless CMS for Gatsby, but many WordPress plugins require an additional wrapper before their data can be used within Gatsby. Currently, support for a select number of WordPress plugins are built directly into gatsby-source-wordpress:

What if gatsby-source-wordpress had a generic way to pull in data from any plugin’s WordPress REST API endpoint?

Read the the full draft here…

Thanks!

@kennethormandy kennethormandy changed the title Wordpress source plugins WordPress source plugins Dec 16, 2018
TBD?

- **[Detailed design](#detailed-design)**
- **Would this mean moving the existing plugins supported out of `gatsby-source-wordpress`?** Right now I think we should keep ACF support in `gatsby-source-wordpress`, but I can also see the case for moving all WordPress plugin…plugins out of it.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can actually move this out of main package, but still ship them by default (at least initially). This would also allow us to validate that our extension points actually do make sense if we would implement ACF (and other things we support) in separate packages that use public wordpress plugin extension points

@pieh
Copy link

pieh commented Jan 31, 2019

I think this is very good write up of the issue and we should start thinking about "Detailed design". I will now look into plugin implementation to see what extension points would be needed to be able to move ACF, Menus etc support from core wordpress plugin package and also think about requirments for things like WPML (gatsbyjs/gatsby#10942) or Gravity Forms

@kennethormandy
Copy link
Author

Thanks! Just to save the reference, here’s the changes I made to add Gravity Forms support to Gatsby v1.x WordPress plugin that you already reviewed gatsbyjs/gatsby#5599 Not sure if that’s still a relevant example now, but I can port it as a test later on.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants