• Resolved shyam100379

    (@shyam100379)


    Hello Support,
    I want to know how we can update clone text field values programatically.
    In normal cases we can update like this: update_post_meta($postid, ”,”);
    But for clone its a different scenario. So we need to store it like an array. So can i update values like this? Please advise. Thanks in advance,

    https://ww.wp.xz.cn/plugins/meta-box/

Viewing 1 replies (of 1 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi,

    Clone fields store values in an array into 1 single row in the post meta table. To update it, simply use:

    $values = array(
        'Value 1',
        'Value 2',
    );
    update_post_meta( $post_id, 'field_id', $values );
Viewing 1 replies (of 1 total)

The topic ‘update values programatically for clone text fields’ is closed to new replies.