Filename: gw-checkbox-to-acf.php
gw-checkbox-to-acf.php
<?php /** * Gravity Wiz // Gravity Forms // Map GF Checkbox Field to ACF Checkbox Field (User Meta) * https://gravitywiz.com/ */ add_filter( 'gform_user_registration_meta_value', function( $value, $meta_key ) { // Update "checkboxes" to your custom field's name. if ( $meta_key === 'checkboxes' ) { $value = array_map( 'trim', explode( ',', $value ) ); } return $value; }, 10, 2 );
Your email address will not be published. Required fields are marked *
Comment *
Notify me of followup comments via e-mail
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.
Δ