• Hello!
    By default WP doesn’t generate wp_name for pending and draft posts. I tried to fix this using wp_insert_post_data filter to add an unique post_name value and post_type_link filter to generate permalinks for custom type posts with pending and draft status, and it doesn’t seem to break something.
    Is it a good practice or shouldn’t I have done this?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m probably not qualified to decide if something is “good practice” or not, but I don’t foresee any problems with what you are doing.

Viewing 1 replies (of 1 total)
  • The topic ‘Generating slugs for pending and draft posts’ is closed to new replies.