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

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 6 months, 3 weeks ago.

  • 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.