Last active
October 29, 2018 15:26
-
-
Save spivurno/00d3b9f66f48c70a98408d08ab92349f to your computer and use it in GitHub Desktop.
Gravity Wiz // Gravity Forms // Map GF Checkbox Field to ACF Checkbox Field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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