As I already wrote – it’s line 209.
indeed, must have missed that.
Do you mean @aurelien is a real author? Does he read this forum or I need to contact him other way?
he is the original author, but has not been seen on the forum for several years now. I also tried to reach him on his professional email without any success.
The plugin works this way: add callback after post save/delete and add post_id and taxonomy_id’s to external table.
the plugin hooks filters and actions, that is correct. That’s how all plugin run in WordPress.
Remove all callbacks and just get all posts on ReOrder page and simply INSERT them ALL to this table.
No, I don’t agree for several reasons,
- hooks are the std way to code plugins in the WordPress framework for the simple reason that they allows multiple plugins to interact and process the same process flow. Unilaterally loading posts into the table using custom sql does not allow other developers the ability to add possible additional functionality in the future.
- writing custom sql is prone to break in the future should WordPress core evolve the underlying structure of the DB. Using WordPress std functions shields your code from such changes as much as possible.
- the re-coding of this plugin should really go in the opposite direction, do away with the custom table and bring everything back into the fold of WP core functionality, for the very reasons highlighted above.
Did you actually read my post on the re-coding thoughts I exchanged with another user of this plugin? I think not. I would appreciate it you did first, before any further discussion.