Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/DalkMania/wp-graphql-cpt

This plugin is an add-on for WP GraphQL. It builds on top of WP GraphQL and adds all registered custom post types and taxonomies to the WP GraphQL Endpoint.
https://github.com/DalkMania/wp-graphql-cpt

Last synced: 2 months ago
JSON representation

This plugin is an add-on for WP GraphQL. It builds on top of WP GraphQL and adds all registered custom post types and taxonomies to the WP GraphQL Endpoint.

Awesome Lists containing this project

README

        

# WP GraphQL Custom Post Types and Custom Taxonomies

This plugin is an add-on for the awesome [WP GraphQL][wp-graphql]

It builds on top of WP GraphQL and adds all registered custom posttypes and taxonomies to the WP GraphQL Endpoint.

## Installing

1. Make sure that [WP GraphQL][wp-graphql] is installed and activated first.
2. Upload this repo (or git clone) to your plugins folder and activate it.

## Usage

Your theme or other plugins may use custom post types and taxonomies to add custom functionality. That data or functionality may be beneficial / required for a front end or other app that consumes your API.

Just activate the plugin and the data will be avialble to you at the WP GraphQL Endpoint for you to query.

## Notes

Don't forget to add `singular_name` to your labels array for either the custom post types or custom taxonomies.

If you are using WooCommerce. Don't forget to add [WPGraphQL for WooCommerce][wp-graphql-woo]. Since this plugin will filter it out.

[wp-graphql]: https://github.com/wp-graphql/wp-graphql
[wp-graphql-woo]: https://github.com/wp-graphql/wp-graphql-woocommerce