Question : How to get last inserted row ID from wordpress database?
The accepted answer has 125 up votes and just 2 down votes.....
But answer is 100% wrong according to documentation. (I tested it too....)
This function returns false if the row could not be inserted. Otherwise, it returns the number of affected rows (which will always be 1).
OP asked that "last inserted row", but answer returns the affected rows.....
How it possible having huge up votes for a wrong answer... I mean 125 up votes and just 2 down votes............
Is there anything we can do just type a comment saying answer is wrong.....