Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I want to fetch all post revisions for my posts.
From just looking at your snippet you're not actually setting $post_revisions to any value before assigning it to your $post_data array