[Suggestion] Type of field in WP Hook
-
Hi,
I think the type of field input should be included during WP Hook and maybe other validation actions too, this will make us easier to decide which handler for a specific field.
In my case, I’m currently creating a plugin to export the mega form entries into a google spreadsheet and there’s a file upload field with a different ‘raw’ array structure. So I would like to split handlers for each field.
[4] => Array ( [label] => number [values] => Array ( [raw] => 111 [formatted_short] => 111 [formatted_long] => 111 ) )
Would be like,
[4] => Array ( [label] => number [type] => number [values] => Array ( [raw] => 111 [formatted_short] => 111 [formatted_long] => 111 ) )
- This topic was modified 2 years, 3 months ago by .
- This topic was modified 2 years, 3 months ago by .
- This topic was modified 2 years, 3 months ago by . Reason: add code
- This topic was modified 2 years, 3 months ago by .
- This topic was modified 2 years, 3 months ago by .
- This topic was modified 2 years, 3 months ago by .
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘[Suggestion] Type of field in WP Hook’ is closed to new replies.