Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add _save method to attachment post type actions #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add _save method to attachment post type actions #64

wants to merge 1 commit into from

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