How to get all states from get_blog_posts



Right now, it only takes either DRAFT, PUBLISHED or SCHEDULED as a parameter for state. I want to get all the posts in any state. How do I achieve that ?



Hi @ar-hz,

Including the state parameter in your request will return all blog posts with that state. Not including the state parameter at all will return all blog posts, regardless of state.