The filter is dynamic, i.e. generated from rest_{$post_type}_query.
So for the post post type it’s rest_post_query and for the cpt post type it’s rest_cpt_query
Note that REST pagination is available:
https://example.com/wp-json/wp/v2/posts?per_page=100&page=1
https://example.com/wp-json/wp/v2/posts?per_page=100&page=2
...
The maximum of per_page is to reduce the risk of fatal errors if available resources are exceeded when too many items are fetched.
Related Posts:
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- WordPress REST Create Post of Custom Type
- How to handle new post from API request?
- Remove slug from custom post type post URLs
- WP_Query Pagination on single-custom.php
- How to get post content by calling ajax?
- Make featured image required
- previous_post_link() and next_post_link() with a custom post type?
- Get category id from post id of a custom post type
- Setting a custom sub-path for blog without using pages?
- Update CPT meta data using REST API
- REST API: How can I restrict a custom post type to only be accessible by authenticated users?
- Limit widget to a specific registered sidebar
- WP_List_Table Inside Metabox Not Working on Submit
- Showing current taxonomy terms
- Custom Posts on Different Pages
- taxonomy list display custom post count
- custom sortable column
- Custom Post Type by user
- How to create posts (not post template) to be displayed on projects page?
- How to embed form data within the ‘Add new post’
- same archive template for different custom post
- Get all posts WHERE custom_field is LIKE value
- WordPress Rest API only returns content when posttype has editor capability
- Loop on front-page.php
- How can I show a custom post type for users in the authors.php file?
- Blog page showing same content as homepage
- Auto-generated posts not showing in backend (but being counted!)
- Need help targeting a custom post type with conditional tags
- How to create custom boxes with text inside?
- Restrict custom post type from appearing with ?post_types=
- Disable block with taxonomies at post page
- Which post does a taxonomy term belongs to?
- Changing custom type name hides the posts
- Display Ad on Specific Categories
- Add custom field to Posts and sort by it
- Two Custom Post Types Many to Many Relationship
- Problem with displaying posts in the CPT category
- How to create custom post by using REST API securely?
- How to change the post type a theme shows by default?
- filter custom post in rest api with custom function
- No Permission to add new Page, Post or CPT with Admin role
- Update postmeta Parent when post_status child change
- Shortcode not working with post counter
- Changing default ‘posts’ parameters with register_post_type_args
- 2 Different Custom Post Types in Submenu
- How to assign classes to all elements?
- Reworking function for counting custom post type posts count
- help
- How to get all post of custom post type by rest api?
- How to Display Posts From Category Within a Custom Taxonomy?
- How to Make infinite loop of post
- WP_Query with custom post type ID
- Published post auto change status to pending after 90 days
- How to retrieve all wordpress posts (specific type) inside a function in php?
- How to add a filter to a custom post type to get adjacent custom posts via the REST API
- Automatically update slug with latest title within custom post type [duplicate]
- Modifying the default post from wordpress
- How to Query in WordPress which shows Alphabetic Posts?
- Display custom post counts for author , not default posts
- Building a Data Intensive Website with WordPress
- Order posts by years
- WordPress REST API V2: “{CUSTOM_POST_TYPE} matches Term ID List and Term ID Taxonomy Query, but should match only one.”
- no_rest_route in Unit Testing for REST endpoint for CPT registered via show_in_rest
- Display all Categories except ones with a specific parent
- How to change Elementor Template for Single Page Post on Load
- How can I sort the results of a REST API response by the title of a connected custom post type?
- Create API’s for custom-post types & custom queries using REST or Graphql
- Action on Custom Post publish
- Post template not applying on theme (potentially rendering as Page template)
- Show custom post status when logged out
- $_POST from a Meta Box
- User Archive page for Custom Post Type – Pagination Issue
- Custom post Query and WordPress Post Query Clash
- Multiple Custom Post Type with different Taxonomies
- Links Image in “Catalog” Page to Posts
- How to create a discussion post when a custom post is created?
- Filter By Term Not Working – Custom Post Type
- how to display notifications in the wordpress menu when a new post is published
- Editor role isn’t seeing specific post type posts with only post_type parameter
- How can draft post after 1 year
- Custom Post Types and Posts are mixed
- How to create content automatically when a post is published?
- query_post causes the posts to be loaded twice on load more posts
- Hook only specific post type
- Custom Post Type permalink not working on new posts
- Retrieving IDs of child pages which are in a different post type
- Turn post into simple slideshow
- post in a lightbox?
- Query multiple post of which one by taxonomy
- Cannot exclude particular post from loop of custom post type
- the_content() stop images being pulled through
- Apply text based styling done for a single post in WPBakery to all posts / create a template out of it [closed]
- Different layouts for different post types in wordpress?
- How to create a job post by email parsing? [closed]
- Get all posts of any post type in a category from REST API
- How to automate the creation of advanced layout article/post
- Display code if title of the custom post matches title of other post
- Hide load more button if no more post in selected category
- rest_api_init is not getting invoked inside a Class