开发者 |
luminfire
macbookandrew brilliantplugins nickciske daverydan |
---|---|
更新时间 | 2024年11月6日 05:07 |
PHP版本: | 4.8 及以上 |
WordPress版本: | 6.2.2 |
版权: | GPLv3 |
版权网址: | 版权信息 |
/json
to Gravity Forms’ form- or entry-related endpoints to get JSON field data.https://your-site.com/wp-json/gf/v2/entries/json/
https://your-site.com/wp-json/gf/v2/entries/<entry_id>/json/
https://your-site.com/wp-json/gf/v2/forms/<form_id>/json/
https://your-site.com/wp-json/gf/v2/forms/<form_id>/entries/<entry_id>/json/
gform_after_submission
hook, for instance), follow this example:
// Assuming $entry is a single form entry.
// You can retrieve an entry by id using GFAPI::get_entry( $id );
$entry_with_friendly_names = GF_Field_Helper_Common::replace_field_names( $entry );
fields
object in each entry object.