获取$ post对象

I'm developing a Wordpress plugin and I need to retrieve some page revisions. I stumbled across this function: wp_get_post_revision($post);, which seems to be what I need; however, I'm having a heck of a time getting a $post object in my PHP file to pass to that function in the first place.

Been at this for quite a while today – I'm fried. I am going to pick it back up first thing in the morning, but thought I'd see if anyone knows anything!

You can get a WordPress WP_Post object using the get_post function.

Read more here