Forums

[resolved] delete a category and all of its child category (1 post)

  1. uwiuw
    Member
    Posted 1 year ago #

    i hope somebody can answer this.

    I have problem when i have to create some custom solution. What i need to accomplish is some simple feature where every time user delete a category from administrator panel (in dashboard), then every posts (and all its meta field) and child category also get delete.

    Right now in wordpress, (i believe i use 2.9.2 version), every time a category get deleted then its ID get erase. But its child category and its post will not erase.

    The child and the post only got their terms and depth level changes.

    i have try some hook such as delete_term and delete_category but the return value i got from here just the ID of the deleted category.

    So how to accomplish this ?

Topic Closed

This topic has been closed to new replies.

About this Topic