Hi
I’m trying to use the following code to get the event start date into a Gravity Form:
add_filter('gform_field_value_event_date', 'my_custom_population_function');
function my_custom_population_function($value){
return tribe_get_start_date(null, false, 'F j, Y - g:i a');
}
But it brings in the date the form is returned ie today’s date rather than the event date in August.
I’ve seen a few issues around this both here in the forum and elsewhere where the tribe_get_start_date returns are similar to above.
Is there something else I need to do to get this to work – sorry, I’m getting there with my php, but still really a novice.
Any help would be gratefully appreciated.
Thanks Phil