Core custom form fields
Hi, I'm developing a plugin that adds some custom fields to the core form (the one that appears when a user tries to post an Ad).
I need some advice about some questions:
1. Is there a way to dynamically add custom fields? I need to show those fields depending on the user package. There's no filter on cp_get_custom_form_fields() and that would be handy (it's a simple change, actually). Instead of using the filter I'm currently adding the fields in the DB when the plugin is activated and hiding them using
JS but I don't really like this approach.
2. I cannot find the moment where the form is processed so I can collect those fields and save the properly as post meta. Could you point me where's the code that process the form? Does it have any action so I can process my fields?
Thanks.