Adding an Archive button to posts page for administrators
I want to add an Archive button near the Edit, Quick Edit, Trash and View buttons in the posts page - http://i.imgur.com/HDZBPCy.png. I've found a nice function that can probably do just that, but I've got no idea how to use it - wp_set_post_categories. What I want is to have a static Archive category, that isn't present in any of the menus, but due to the nature of the site (lots of orders, results etc) we have to keep them and I just don't want them to be in the trash or unpublish them after their deadline expires. I've looked through the pages to see how Delete button works, but I've found 30+ references to it, and I can't fathom how exactly does that work. Any help would be greatly appreciated.
I want to add an Archive button near the Edit, Quick Edit, Trash and View buttons in the posts page - http://i.imgur.com/HDZBPCy.png. I've found a nice function that can probably do just that, but I've got no idea how to use it - wp_set_post_categories. What I want is to have a static Archive category, that isn't present in any of the menus, but due to the nature of the site (lots of orders, results etc) we have to keep them and I just don't want them to be in the trash or unpublish them after their deadline expires. I've looked through the pages to see how Delete button works, but I've found 30+ references to it, and I can't fathom how exactly does that work. Any help would be greatly appreciated.
No comments:
Post a Comment