Frontend Uploader
getting post id after $_POST (2 posts)

  1. tatertots
    Posted 2 years ago #

    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!


  2. Rinat Khaziev
    Plugin Author

    Posted 2 years ago #

    Hey, you probably need to use different action. Try this:

    // 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Frontend Uploader
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.