Ready to get started?Download WordPress


Get postid in write post form (2 posts)

  1. glennwelker
    Posted 5 years ago #

    I have some custom data before the advanced section of the write/edit post form. I need to populate my form with previously saved values. I don't know where to hook to get postid.

    The form is being built by a hook in edit_form_advanced.

  2. glennwelker
    Posted 5 years ago #

    Is there any reason to not just set a global reference to $post?

    Is this the recommended way?

Topic Closed

This topic has been closed to new replies.

About this Topic