I suggest that rather than developing a plugin for this simply go through the list of books you want to correct Ctrl clicking each one, then hit the E key and bulk swap the title and author.
But if you want to develop a plugin, the swapping code requires loading the title and author from the db and swapping them. I suggest looking through the code of the Quality Check plugin to learn how to do that. There is no single function you can call.
|