Answers for "WPDB Insert or if exists Update"

0

WPDB Insert or if exists Update

$wpdb->update(
    $wpdb->prepare(
        $wpdb->prefix.'item_info',
        array(
            'post_id'       => $post_id,
            'item_stock'    => $item_stock
        ),
        array('post_id' => $post_id)
    )
);
Posted by: Guest on April-27-2021

Code answers related to "WPDB Insert or if exists Update"

Browse Popular Code Answers by Language