neuf-events, neuf-venues, neuf-associations: expose in GraphQL

This commit is contained in:
ponas committed 2021-10-31 21:02:00 +01:00
1 parent 36c3b1294c
commit d738fe9107
4 files changed
+15

No files matched your search

@@ -25,6 +25,9 @@ function neuf_associations_post_type()
'show_ui' => true,
'show_in_rest' => true,
'rest_base' => 'associations',
'show_in_graphql' => true,
'graphql_single_name' => 'association',
'graphql_plural_name' => 'associations',
'capability_type' => 'post',
'supports' => array(
'title',
@@ -48,6 +48,9 @@ function neuf_events_post_type()
'show_in_rest' => true,
'rest_base' => 'events',
'rest_controller_class' => 'WP_REST_Posts_Controller',
'show_in_graphql' => true,
'graphql_single_name' => 'event',
'graphql_plural_name' => 'events',
)
);
}
@@ -47,6 +47,9 @@ function neuf_events_register_event_type_taxonomy()
'slug' => __('eventtype', 'neuf_event'),
'hierarchical' => true,
),
'show_in_graphql' => true,
'graphql_single_name' => 'eventType',
'graphql_plural_name' => 'eventTypes',
)
);
}
@@ -85,6 +88,9 @@ function neuf_events_register_organizer_taxonomy()
'rewrite' => array(
'slug' => __('organizer', 'neuf_event'),
),
'show_in_graphql' => true,
'graphql_single_name' => 'eventOrganizer',
'graphql_plural_name' => 'eventOrganizers',
)
);
}
@@ -48,6 +48,9 @@ function neuf_venues_post_type()
),
'show_in_rest' => true,
'rest_base' => 'venues',
'show_in_graphql' => true,
'graphql_single_name' => 'venue',
'graphql_plural_name' => 'venues',
)
);
}