Filter form elements in Post Edit page.
-
I have a challenge. I am using a form input and submit button towards the top of a custom post type edit page, for the user to input some info which I then pass to a php function (on the same page, so action = “”). After this action, the function sets some php variables.
The wordpress issue is that I want to populate the remaining fields, some custom meta fields, and some custom taxonomy fields with the results of this function. I don’t want to submit straight to the database, I want the user to have the option of manually changing the fields. So my plan was to use a filter hook for the custom meta and taxonomy fields – trouble is I can’t find any hooks which are specific to each form element (obviously i suppose), and which are specific to my particular custom fields text inputs. Any ideas how this is done via this method or any other.?
Many thanks, Andrew.
The topic ‘Filter form elements in Post Edit page.’ is closed to new replies.