• Resolved Cristiano

    (@iclapton)


    Hi Pods friends,

    A simple question… I know we should use save() function to save a field value… is it the right way to update a field value?

    I mean, I have pod object with it’s values already saved. I want to update one of it’s fields if something happens… I used save, like this:

    $pods = pods( ‘mypod’, $params );
    $pods->save( ‘myfield’, ‘new_value’ );

    Is there a better way to do it?
    Thanks

    https://ww.wp.xz.cn/plugins/pods/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Updating a field value’ is closed to new replies.