You can definitely add filters for pods_register_post_type_{your_pod}
and pods_register_taxonomy_{your_pod}
. I’d love to build in support for GraphQL into Pods itself at some point. Just a matter of adding the checks if GraphQL is available and showing the options in the UI, similar to how we do our REST API options in the UI.
<?php
add_filter( 'pods_register_post_type_mycpt', 'add_pods_graphql_support' );
add_filter( 'pods_register_taxonomy_mytax', 'add_pods_graphql_support' );
function add_pods_graphql_support( $options ) {
$options['show_in_graphql'] = true;
$options['graphql_single_name'] = $options['labels']['name'];
$options['graphql_plural_name'] = $options['labels']['singular_name'];
return $options;
}
Related Posts:
- How to initialize PODS?
- How do increase the amount of links shown down the left in the admin menu?
- Linking to the most recent post in a Custom Post Type
- Getting a PHP Notice when using Pods with WPML [closed]
- Display a grid of taxonomy terms at root taxonomy page
- Include related custom fields from one post type in another post type’s JSON feed
- Define/declare new custom types with fields in plugin?
- How to get a custom field value of a custom post?
- Facebook social publisher and custom post type fields [closed]
- How do I create an overview page with custom calculations from a post-type?
- How to group navigation items in the admin panel
- Pods CMS: How to add custom column to Adnvanced Content Type
- WordPress different templates for same type custom post (but different slug)
- How to add a sub directory to WordPress single posts without affecting other post types?
- Custom Post Type “MUST NOT” be able to search via URL
- Fetch data of 2 relational Custom Post in WordPress
- Add custom post related by custom field to custom post
- How to display related posts using the same taxonomy for custom types (WordPress, Pods, Woo)
- What is the correct way that when creating a custom post type assign values to custom fields created with pods framework?
- How to check if WordPress object type is already extended by pods
- Pods pagination erases my sub menu
- Custom Post Types and Posts are mixed
- Display all child posts in a custom post type, grouped by a custom taxonomy site
- Permalinks for Custom Post Types and Taxonomies
- Custom URLs between different post types, using “Pods”
- Get post with multiple meta keys and value
- Get posts for custom post type with WP_Query
- Custom Post Type Data in Sidebar widgets?
- Custom Post Type Permalink / Rewrite not working immediately
- Why would WordPress use ‘attachment’ in a custom post type’s query string?
- Unregister post type from child theme
- Custom Post Type With Different Views
- How to get term link that crosses different custom post types?
- Custom post type Admin Page
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- Set post title from two meta fields
- Where to put archive-{post-type}.php
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- Correct way to use a form to to filter custom posts by taxonomy terms?
- Using Custom Templates for Custom Post Types for the Genesis Theme Framework?
- WordPress custom post type category pagination 404 Error
- Custom-Taxonomy as categories: Remove “most-used” tab?
- Custom Permalinks for Custom Post Types and Taxonomies
- Custom Taxonomy order by Custom Field
- Custom post types – non-visible title and how it affects URL
- Limit search form to 4 custom post types only
- How can I include meta box content when searching?
- “More” span making trouble
- Single Post Pages for Custom Post Types
- Get all posts WHERE custom_field is LIKE value
- Show ACF field from custom taxonomy and display on the single template
- How to rename image at uploading on specific plugin or post-type in WordPress
- Loop on front-page.php
- Archive of custom post type not showing
- WP_Query | ‘post_type’ doesn’t work
- Sort by custom field is not working
- Custom post type not displayed in breadcrumbs on archive page
- Can I create a loop with multiple post types and specify different $args for each post type?
- Very simple wordpress block to display posts from an api call
- ACF Values Don’t Show After Import Unless I Edit/Update Post
- How do you paginate a query grouped by month?
- Grouping metadatas into one
- Changing default ‘posts’ parameters with register_post_type_args
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- How to display single post from custom post type loop?
- Archive for CPT
- Querying Custom Post Type, ordering by Custom Taxonomy Pagination Not Working
- Can custom fields be added without a meta box?
- Check post on publish for blank title
- previous_post_link in same taxonomy in custom post type
- How do I create a new post upon registration with the users first and last name as title
- Dynamic pages for linked categories and content
- How do I replace the post title with a custom field?
- How can I make custom static widgets/areas on my homepage?
- Custom Taxonomy dont save in a frontend form for post a custom post
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- Page template that uses lightbox to display post images
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Get the taxonomy value in the post loop inside the archive page
- How to access repeater field of a custom field?
- Custom Post Type 404 Error even after flushing rewrite rules
- Custom post types & Pages hierarchy – Error 404
- custom post type section selector
- Previous/Next custom post links within custom taxonomy
- Custom post type: “transition_post_status” action get title and other fields
- wp_dropdown_pages doesn’t allow me to select more than one custom post type
- Override “Parent” input for custom taxonomy
- How to develop custom URL redirection
- Custom post type with Filter and Page Nav
- Custom Post Type Archive Links Not Working
- Custom Post Type Categories Not Maintaining URL structure any more
- Why is this custom post type defaulting to archive.php?
- Custom post types permalinks not working
- How do I ensure custom post type information is displayed in correct order?
- Tag-post relationship problem
- Rewrite rules for using the same base slug for multiple content types
- Custom Post type as Taxonomy
- Getting 404.php instead of single-.php [duplicate]
- How to manage wordpress knowledge base/wiki/posts collections
- add_rewrite_rule not working in Custom Post Type UI Plugin