Skip to content

Instantly share code, notes, and snippets.

View andrenellin's full-sized avatar

andrenellin andrenellin

View GitHub Profile
@andrenellin
andrenellin / gp-nested-forms-user-registration-map-full-child-entry-data.php
Created January 25, 2022 21:17 — forked from spivurno/gp-nested-forms-user-registration-map-full-child-entry-data.php
Gravity Perks // GP Nested Forms // Map Full Child Entry Data via User Registration Add-on
<?php
/**
* Gravity Perks // GP Nested Forms // Map Full Child Entry Data via User Registration Add-on
* http://gravitywiz.com/documentation/gravity-forms-nested-forms/
*/
add_action( 'gform_user_registration_meta_value', function( $value, $meta_key, $meta, $form, $entry, $is_username ) {
if( ! is_callable( 'gp_nested_forms' ) || ! gp_nested_forms()->has_nested_form_field( $form ) ) {
return $value;
}