Version 2
There is a variable defined in PHP.ini:
see:
which limits the maximum execution time of a script, its default value is 5 minutes.
Sometimes, if your database is huge, the operation of the plugin was interrupted by this limitation.
To solve this:
* I have optimized the algorithm used for a higher speed.
* I have included a new variable in which you can set the maximum number of minutes of execution.
If the execution takes more than this value, the deletion of conversations is partially executed and you can finish it by executing several times.
The default value is 2 minutes, and you can set values from 1 to 20 minutes.
Values above 3, once executed, are limited to 3 for each use for security reasons.
If the execution of the process has been interrupted due to lack of time, a warning is displayed in a POP-UP window