auto increment - How to get last inserted row ID from WordPress database? - Stack Overflow

PHOTO EMBED

Fri Nov 19 2021 11:55:19 GMT+0000 (UTC)

Saved by @khalidlogi

$lastid = $wpdb->insert_id;
content_copyCOPY

https://stackoverflow.com/questions/1576018/how-to-get-last-inserted-row-id-from-wordpress-database