wp-gatsby-tghp - TGHP Extensions to wp-gatsby
Common extensions for TGHP projects to the wp-gatsby plugin. While wp-gatsby optimizes your WordPress site to work as a data source for Gatsby, wp-gatsby-tghp adds additional layers to further optimize for our projects.
Actions in wp-gatsby are used to track when something has changed in WordPress so that Gatsby can tell what needs to be rebuilt. This plugin adds a few more actions to support our internal needs:
- Posts assigned to terms
- Metabox (metabox.io only) field values changed on posts/terms/settings-pages
- SimpleCustomOrder post order changed
- Yoast SEO field values changed
Add a handy button to the dashboard to trigger a build right now.
Webhooks must be added to Gatsby cloud, but once added, the plugin records what happens in Gatsby cloud. Mainly useful for tracking when successful/failed builds happen. These events are fed back to the user via a widget on the dashboard.
The webhook URL you need to add should be an outgoing notification via:
{WP_URL}/wp-json/wpgatsbytghp/v1/wpgatsbytghp-receive-webhook