Perhaps this filter can help you to modify the query for the specific post type and inside wp-admin
as per the documentation, this filter is called before the query is executed so you can modify/optimize the query with the help of this filter.
do_action_ref_array( 'pre_get_posts', WP_Query $query )
further reference: https://developer.wordpress.org/reference/hooks/pre_get_posts/
Related Posts:
- How to make post sticky in the admin page?
- Remove rows in the manage post/page view
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- How do I edit the WordPress post.php file?
- list articles in admin showing nested categories or slugs?
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- Publishing failed. The response is not a valid JSON response
- Limiting the Number of User Posts to Their Own Posts
- How can I remove the “Add New” button in my custom post type?
- Submit post and upload image from front-end
- How do I filter the excerpt metabox description in admin?
- Is it OK to move admin menu items?
- WordPress Custom Post Type Admin Page really slow
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- Post slug changed using code doesn’t reflect on editor when post is published
- Problem excluding category from get_next_post
- Remove date and category filters when editing custom post types
- Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types?
- How to let custom post type posts show in standard post archive (like in homepage)?
- Rewrite custom post & taxonomy to share same URL path
- Custom Post Type Name Causing Problem
- Get the post children count of a post
- Quickest way to get last or oldest post date – WP Query
- Need functionality with all post list available at edit.php
- How to use custom fields to enable sticky posts on custom post types?
- How to remove ‘create new post’ entry for a custom post type?
- get_template_part for custom post type content not working
- count_many_users_posts except current logged in user?
- Custom post type and body_class: Remove “blog” class
- Find the user who initially created the post
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- How to get the post type from a category id?
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- Getting posts under the custom post type ui category
- create parent post using wp_insert_post
- Turn on and off custom post type from admin?
- I would like to have different styles for my posts based on the content of each post
- List custom taxonomy specific to one custom post type
- Add custom post type settings to wordress default posts
- JS innerhtml changing style when using AJAX
- Side effects of Script and Iframe in post
- Several post types on WP Query by tag and taxonomy
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Admin Column does not populate with data
- Custom Postype specific changes in admin panel
- Some posts from custom post type to subdomains
- Add a custom text to admin footer in a Custom Post Type page
- wordpress remove views from action links in a custom post
- Set thumbnail and title for a post type archive (not post itself!)
- Stores category posts in an array
- Add to ‘action’ within post.php to allow more actions when editing a Custom Post Type in a plugin
- Get post format
- Template code to split a post and print a custom field?
- Send post changes to set email addresses (not users or subscribers)
- Display post from custom post type
- Custom post type title of each author in his own post
- Custom Post type registering as page post type
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- Enable comments for post when comments meta box removed
- How to: Add a publish immediately button when editing custom WordPress posts?
- Extending post by email
- Checking for custom field in admin pages
- Custom Posttype URL
- Display custom post front end filter by ACF equals current user
- Get_post_custom not fetching value from array wordpress
- Display Parent-Child Posts in specific order by comparing IDs in array
- Post category behave like a Post in back office menu
- Save data is post using php front end
- What is the best way to structure posts for the same event happening in different years?
- How to display custom field in product description?
- How to display posts with plugin (advanced custom fields) field groups?
- WordPress – display relationship between blog posts and custom posts
- Custom page with no headers, footers and its own CSS, Javascript
- SEARCH QUERIES – REVERSE OUTPUT
- Is there a way to create a sidebar of bullets
- Get queried object for custom post type count
- edit.php all post not working
- How do I create a customised table list of a custom post type (in the admin area)?
- I cannot display custom posts in custom taxonomy
- How to redirect from wp-admin/edit.php to a frontend page for specific custom post type?
- How can I get the last 5 element of this tax query?
- How to get the posts that my following users are liked?
- How to insert post 6 times after user register like ask.fm
- Custom post meta box as a sub form
- How can i order my posts by post type?
- Creating custom post type relationships
- How to mark posts as visited
- Add filter button to custom post type in admin area
- “Trash”, “Draft” and count not showing for custom post type in admin panel
- How To Loop Through list with Custom Post Types
- Adding Information To All Posts Screen
- Different post types arranged on one page
- erase post excerpt limitation [×]
- Display all post types together
- Custom My account page and custom page for editing posts
- Show posts of parent in edit.php
- Get post from custom post type that title is like custom string [closed]
- show posts under custom post type with same autj
- Two pagination in one page without AJAX