Hi
When I submit a form on the front end on a new custom table the first entry created takes the next post id and does not start from an ID of 1, why is this?
$meta_boxes[] = [
'title' => 'Test',
'model' => 'example',
'storage_type'=> 'test'
'table' => 'wp_test',
'id' => 'test',
'fields' => [
[
'id' => 'product_name',
'type' => 'text',
'name' => 'Product Name',
],
]
]
MB_Custom_Table_API::create(
"{$wpdb->prefix}" . 'test',
[
'user_id' => 'BIGINT(20)',
'data' => 'TEXT NOT NULL',
'iv' => 'VARCHAR(50)',
],
['user_id'],
true // Must be true for models
);