WordPress.org

Support

Support » Plugins and Hacks » Frontend Uploader » getting post id after $_POST

getting post id after $_POST

Viewing 1 replies (of 1 total)
  • Plugin Author Rinat Khaziev

    @rinatkhaziev

    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.
Skip to toolbar