API for creating/updating meta?

Support MB Custom Table API for creating/updating meta?Resolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12381
    calebcookcalebcook
    Participant

    I see functions to read existing meta from Meta Box, but do you have functions to write/update meta to tables?

    #12394
    Anh TranAnh Tran
    Keymaster

    Hi, you can do that pretty easy with $wpdb:

    global $wpdb;
    $wpdb->update( 'your_table', array( 'field_1' => 'value_1', 'field_2' => 'value_2' ) );
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.