Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/DalkMania/wp-graphql-cpt
- Owner: DalkMania
- Created: 2018-07-23T01:37:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T13:51:55.000Z (over 1 year ago)
- Last Synced: 2024-08-02T05:15:18.826Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 13
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-wordpress-gatsby - WPGraphQL Enable All Post Types (DalkMania) - This FREE plugin from @DalkMania automatically adds ALL registered post types to the WPGraphQL Schema. (Plugins / WordPress)
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