Hi there,
the original topic (http://www.gravityhelp.com/forums/topic/right-parameter-names-to-pre-populate-the-names-fields) is closed, so I started a new one to ask the question.
I am trying to understand some code by David in the following pastie:
http://pastie.org/1470060
Why does he use the create_function here and not just call the function direct? Is there any reason for this?
He uses:
add_filter('gform_field_value_user_firstname', create_function("", '$value = populate_usermeta(\'first_name\'); return $value;' ));
I would have used:
add_filter('gform_field_value_user_firstname', 'populate_usermeta('first_name')');
What are the \ before the ' for?