Skip to content

Conversation

@Kevinlearynet
Copy link

I've added a metabox to media attachments for a project I'm working on. At first the metabox fields weren't saving values. I discovered that the built-in "attachment" post type doesn't use the save_post action and instead uses edit_attachment and add_attachment. This patch fixes the saving issue and allows custom meta boxes to be attached to the attachment post type.

I've added a metabox to media attachments for a project I'm working on. At first, fields weren't saving. I discovered that the built-in "attachment" post type doesn't use the `save_post` action and instead uses `edit_attachment` and `add_attachment`. This patch fixes the saving issue and allows custom meta boxes to be attached to the `attachment` post type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants