Skip to content

Add _save method to attachment post type actions#64

Open
Kevinlearynet wants to merge 1 commit intofarinspace:masterfrom
Kevinlearynet:patch-1
Open

Add _save method to attachment post type actions#64
Kevinlearynet wants to merge 1 commit intofarinspace:masterfrom
Kevinlearynet:patch-1

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