I have a site setup so users can publish a post via the frontend, what happens is, there post is posted as a status, 'Pending Review, in a custom post type.
How can i get the post ID for this particular post the user has just published?
The posts author status is also set to the particular user that submitted the post.
I can get the author's ID using this.
$user_ID = get_current_user_id();
Hope this makes sense and thanks for the help.