Answers for "How to get last inserted row id from wordpress database?"

0

How to get last inserted row id from wordpress database?

global $wpdb;
/** insert query here with $wpdb**/
/** insert query here with $wpdb**/
 $lastId = $wpdb->insert_id; //This is last insert id
Posted by: Guest on May-13-2021

Code answers related to "How to get last inserted row id from wordpress database?"

Browse Popular Code Answers by Language