• I have a custom post type, called users, when a post is generated (via front end) it is given a date 5 days in the future. I want to hide all posts in the dashboard that are not 5 days old yet, and only have them appear after that. Any ideas?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Try hooking the ‘request’ filter. Check $_SERVER['REQUEST_URI'] to ensure the request is for the edit page of your post type. If so add a date_query parameter to the query for posts before 5 days ago.

Viewing 1 replies (of 1 total)

The topic ‘Hiding certain posts based on a condition’ is closed to new replies.