Results 1 to 1 of 1

Thread: How to stop the deduction in "wp_term_taxonomy" count, when the ad is deleted.

  1. #1
    Thread Starter
    Amateur majidmughal's Avatar
    Join Date
    Jan 2012
    Location
    United Kingdom
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: March 24th, 2014, 05:17 PM
  2. Accidently deleted "Membership Page"
    By barter in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: August 30th, 2012, 06:37 PM
  3. [TUTORIAL] How to stop this error message "Warning: file_get_contents()"
    By securityjobs in forum JobRoller General Discussion
    Replies: 4
    Last Post: January 2nd, 2012, 05:17 AM
  4. Replies: 1
    Last Post: August 7th, 2011, 07:39 AM
  5. Replies: 3
    Last Post: December 21st, 2010, 08:18 PM