pods
pods copied to clipboard
Support a json string for field config
Description
This PR allows a JSON string to be passed as a field configuration array for Pods Forms.
Related GitHub issue(s)
Fixes #6435
Testing instructions
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See '....'
Screenshots / screencast
Changelog text for these changes
- Support JSON as field configuration strings for the [pods_form] shortcode.
PR checklist
- [x] I have tested my own code to confirm it works as I intended.
- [x] My code follows the WordPress Coding Standards.
- [x] My code follows the WordPress Inline Documentation Standards.
- [ ] My code includes automated tests for PHP and/or JS (if applicable).
Looks good, let's be sure to set a changelog text entry in this PR description before merging
@sc0ttkclark Done!
This looks good but in practice, don't we have to contend with WP shortcodes handling of double quotes etc that JSON would be using?
Hi @sc0ttkclark Good point, will need to be tested