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

Pass full $_POST in 'edd_metabox_save_' . $field hook #9738

Open
goncalovf opened this issue Jun 10, 2024 · 0 comments
Open

Pass full $_POST in 'edd_metabox_save_' . $field hook #9738

goncalovf opened this issue Jun 10, 2024 · 0 comments
Assignees
Labels
type-request workflow-pending-triage Items that need to be triaged and reviewed before they are worked on.

Comments

@goncalovf
Copy link

Enhancement Request

Explain your enhancement (please be detailed)

Add $_POST as a second argument passed in the 'edd_metabox_save_' . $field hook:

$new = apply_filters( 'edd_metabox_save_' . $field, $_POST[ $field ] );

Justification or use case

I'm creating a custom download type which has a custom meta. I would like to clear the meta value if the download type changes. For that, I need to have access to the full $_POST in my edd_metabox_save_ filter to check for the value of _edd_product_type.

@goncalovf goncalovf added type-request workflow-pending-triage Items that need to be triaged and reviewed before they are worked on. labels Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-request workflow-pending-triage Items that need to be triaged and reviewed before they are worked on.
Projects
None yet
Development

No branches or pull requests

2 participants