Custom Fields
Re-Envisioned
Support MB Custom Table API for creating/updating meta?

  • Creator
    Topic
  • #12381
    Resolved calebcook
    Participant

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

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #12394
    Anh 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 1 replies (of 1 total)
  • You must be logged in to reply to this topic.