Last active
August 2, 2019 15:22
-
-
Save gicolek/4f7333a4ffeb193192b350a0a1e7894c to your computer and use it in GitHub Desktop.
Populate Gravity Form Field with ACF field value
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
<?php | |
/* part of a php CLASS */ | |
add_filter( 'gform_field_value_v_vin', array($this, 'vehicle_vin_population') ); | |
public function vehicle_vin_population( $value ){ | |
if($this->vehicle_id != 0) { | |
return get_field('v_vin', $this->vehicle_id); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment