Title: getting post id after $_POST
Last modified: August 21, 2016

---

# getting post id after $_POST

 *  [tatertots](https://wordpress.org/support/users/tatertots/)
 * (@tatertots)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/getting-post-id-after-_post/)
 * i am using your filter, but the post_ID is always the same. can you please provide
   any insight into this. i just need to be able to grab the post id and i can finish
   the rest. thanks!
 * [http://wordpress.org/extend/plugins/frontend-uploader/](http://wordpress.org/extend/plugins/frontend-uploader/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Rinat](https://wordpress.org/support/users/rinatkhaziev/)
 * (@rinatkhaziev)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/getting-post-id-after-_post/#post-3897425)
 * Hey, you probably need to use different action. Try this:
 *     ```
       <?php
       // Attach action
       add_action( 'fu_after_create_post', 'my_fu_after_create_post' );
   
       // Do something with post ID
       function my_fu_after_create_post( $post_id ) {
       	return $post_id;
       }
       ```
   
 * There’s a special action to which $post_id of freshly created post is passed.
   post_ID contains the post id where upload form is.
 * Let me know if that makes any sense.

Viewing 1 replies (of 1 total)

The topic ‘getting post id after $_POST’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/frontend-uploader_81a69d.svg)
 * [Frontend Uploader](https://wordpress.org/plugins/frontend-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/frontend-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/frontend-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/frontend-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/frontend-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/frontend-uploader/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rinat](https://wordpress.org/support/users/rinatkhaziev/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/getting-post-id-after-_post/#post-3897425)
 * Status: not resolved