Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to set Caldera Forms field default value from ACF field. See:
* Set Caldera Forms Field default from ACF field
add_filter( 'caldera_forms_render_get_field', function( $field ) {
//Change your field ID here
if( 'fld123456' == $field[ 'ID' ] ){
$field[ 'config' ][ 'default' ] = get_field( 'field_name' );
return $field;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment