spivurno
8/31/2017 - 12:12 PM

Gravity Wiz // Gravity Forms // Map GF Checkbox Field to ACF Checkbox Field

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;
} );