How to stop the deduction in "wp_term_taxonomy" count, when the ad is deleted.
Hi,
Is there any quick solution to the following?
The normal behavior is, when you delete an ad, the system automatically performs a deduction of an ad (-1) in "wp_term_taxonomy" table in "count" field from a taxonomy row which it belongs to.
Basically, I am looking to stop this behavior, where it could not perform the deduction when an ad is deleted so I could build up the statistics. What I am looking for is a function which I could add into theme's functions.php so it could stop this behavior probabaly with the help of filter/hook at the end when the ad is deleted.
OR else I was thinking I could leave this functionality as it is and I add another column in wp_term_taxonomy table, I could just add the numbers in that new column, every time a new ad is posted with the help of action/hook. This way there will be no deduction in that column at the time of deletion.
I would really appreciate your help.
Thanks,
Regards,
Maj