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.
Enhancement Request
Explain your enhancement (please be detailed)
Add
$_POST
as a second argument passed in the'edd_metabox_save_' . $field
hook:https://github.com/awesomemotive/easy-digital-downloads/blob/252a23ae294fa390bfc620c452bab755eacb0775/includes/admin/downloads/metabox.php#L231
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 myedd_metabox_save_
filter to check for the value of_edd_product_type
.