Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gravity Wiz // Gravity Forms // Map GF Checkbox Field to ACF Checkbox Field
/**
* Gravity Wiz // Gravity Forms // Map GF Checkbox Field to ACF Checkbox Field
* http://graivtywiz.com/
*/
add_filter( 'gform_post_data', function( $data ) {
// Update "checkboxes" to your cusotm field name.
$data['post_custom_fields']['checkboxes'] = serialize( explode( ',', $data['post_custom_fields']['checkboxes'] ) );
return $data;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.