Support » Plugins » get post_id in add_attachment action

  • I want to add a custom field to the post that the attachment was added to. How can I do that?

    I am currently stuck with getting the ID of the post the attachment belongs to. I hooked on add_attachment, and thinking about adding the meta field using add_post_meta.

    any ideas?

  • The topic ‘get post_id in add_attachment action’ is closed to new replies.