How to get all states from get_blog_posts

cos

#1

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 ?

Thanks.


#2

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.