You can modify the arguments of the post type to enable the REST API:
function wpd_tribe_events_args( $args, $post_type ) {
if ( 'tribe_events' == $post_type ) {
$args['show_in_rest'] = true;
}
return $args;
}
add_filter( 'register_post_type_args', 'wpd_tribe_events_args', 20, 2 );
Related Posts:
- Does something like is_rest() exist
- REST API purpose?
- Get post count in wp rest API v2 and get all categories
- WP REST API — How to change HTTP Response status code?
- wp_get_current_user() function not working in Rest API callback function
- WP REST API Is it rather easy to rename the default wp-json uri part?
- Search WP API using the post title
- Understanding SHORTINIT with WordPress 5
- Is there a way to get protected meta fields through any of the available built-in WordPress APIs? (xmlrpc, wp-json)
- Does pre_get_posts affect REST API responses?
- wordpress wp-json prefix issue
- Is it possible to nest the JSON result of WordPress REST API?
- Filter post_content before loading in Gutenberg editor
- Create post using rest api with html content
- Trying to get an api request getting error 404
- rest_post_query on multiple post types?
- Wp Rest Api Custom Endpoint for page subpages
- Full page NGINX (or Cloudflare) caching and WordPress nonces
- WP REST API returns incorrect data?
- WP 5.5 Fatal Error – get_rest_controller() in rest-api.php
- Display post title from WordPress excluding a string via API
- WP_REMOTE_POST Requests are being blocked by API provider [closed]
- wp_get_object_terms() returns invalid taxonomy inside rest_api_init hook
- Is it posible to use wp.data.select(‘core’) outside a block?
- Can you Use the Rest API to query a custom database table
- Is there anyway to format my EndPoint URL in WordPress?
- Return WP_Error as WP_REST_Response
- Why the Path is different with the one coded in rest
- Custom Rest API POST endpoint with conditionally required parameters
- What is the meta field in the response of the user REST API?
- Is there any way to clear cache when making REST API request?
- how to avoid timeouts with remote API requests?
- Custom API endpoint to create gallery for post
- Register REST route with a multi-value parameter
- How do I add meta when creating a post with rest api?
- rest_api_init is run on every rest call to endpoint
- WordPress + REST API v2 and private pages Load by slug
- Change permissions on REST api?
- WP-REST create user with custom meta
- receive a custom parameter with rest api
- How to get author meta into post endpoint in api v2
- If I use WordPress REST API V2 and someone makes an app using it. Will my site count the posts views from the APP? And if not, then how?
- How to edit feature image with XML RPC?
- How to store and return json in a (custom) post meta field
- Sorry, you are not allowed to list users
- Get a remote post ID via API given URL
- Core function to check if a rest namespace exists
- How to change the date and time in REST API for comments?
- Rest API V2 custom post type. I only need the title and link
- Retriving all users with REST API not working
- Is there a way to download only the Rest API part of WordPress?
- Register GET REST API route with multiple parameters
- Custom WP API endpoint NULL body data
- Making internal rest requests non-blocking?
- How to include file attachment in ajax submission via the rest_api?
- WordPress HTTP API NTLM Authentication
- What is an endpoint for custom post type comments in REST API?
- How To Bulk Import wp_postmeta records in an API call?
- Rest API in self-hosted page doesn’t work [closed]
- How would I know if my system using REST api or not?
- WordPress custom REST API: How to validate input data by many context?
- Authenticate rest API except for contact-form-7
- How to access wordpress menu & submenu item through the REST API?
- How to display relations via wordpress Rest API
- Inspecting WP_Rest_Request
- WP Rest_API- Post request for images returns empty
- WordPress API fields modification
- DELETE request using WP REST API
- Fetching WordPress Private Posts, Public Posts Via Default REST API Endpoint
- How to deliver webp format of images to WP REST API
- WP Rest API in Android studio does not show Images
- Got Blank issue for get data from /wp-json/v2/post
- How do i POST to WordPress rest API from the same domain?
- WP API file_get_contents return TTP request failed! HTTP/1.1 401 Unauthorized
- Not able to delete media by REST API
- Update membership level via API request if using simple membership plugin
- Need to get user data via API
- REST API retrieving posts from www.sitename.com/category/news/ instead of just just from www.sitename.com
- REST API get featured image source for custom post type
- Custom rest API route not passing data along
- How to filter wp-json/wp/v2/users response on custom metas?
- Paid membership Pro Rest API
- Trouble Commenting via the WP REST API using nonces
- wp_query json ouput
- GET request for media files in WP REST API 2 results in an empty array
- Fatal error: Call to undefined function register_rest_route()
- Create a new page on front page for logged in user
- API wp-json/wp/v2/pages/ returns a different result if page is specified
- In Rest API 2.0 is it possible to get some meta fields but not others?
- Getting current core version from an WordPress installation
- Get custom data from the user REST API endpoint
- Custom rest api endpoint response json problem
- How to block external access to register_rest_route callback?
- Filter output of posts (Rest API)
- JS WordPress API fetch no response headers
- WordPress Application Passwords not authorizing
- Rest API nonce is being cached
- WordPress custom endpoint returns Security violated
- Hide custom posts from certain taxonomy in rest api
- Creating Application Password using REST API results in 401 regardless of JWT token