Auto-Sync Post Slug with Title for a Custom Post Type in WordPress
WordPress generates a post’s slug from its title at the moment the post is first saved. After that, changes to the title do not automatically update the slug — this is intentional behaviour for public post types, because changing a published URL would break incoming links and bookmarks. However, for custom post types registered with…