Delete post permanently: slug (post_name) reuse

by Sefran2   Last Updated September 18, 2018 08:08 AM

I use wp_delete_post with true force delete to delete a post permanently, but if I add another post with the same slug after the deletion, a -2 suffix is added.

I've checked media library and posts meta to find posts/media with the same name or slug, but nothing exists.

Tags : posts deleting


Related Questions



Auto delete posts based on content text

Updated June 12, 2017 21:08 PM



Deleting Custom Post type data using mySQL command

Updated April 11, 2017 12:08 PM