WordPress.org

Forums

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

  1. tatertots
    Member
    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!

    http://wordpress.org/extend/plugins/frontend-uploader/

  2. Rinat Khaziev
    Member
    Plugin Author

    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

Tags

No tags yet.