Hi,
I want current date in custom field in clonable group.
array(
'name' => __('INSERT',TEXTDOMAIN),
'id' => $prefix . 'product_insert',
'type' => 'date',
'size' => 20,
'readonly' => true,
'std' => current_datetime()->format('Y-m-d-H-i')
),
Current date is only for the first group in clonable field when i create new post. If I add (click) to another group of fields, then this field is empty.
With this
'clone_default' => true,
it works fine - but i don't want another set of fields to have default values (even if i set std to have empty values within this fields).
So, how can i do this?