How to use a specific custom field in a custom post type as slug
You could do this like saving post meta. You would unhook out of the current hook and update the post, if you don’t do that you will end up in an infinite loop: /** * Save Custom Data * @param int $post_id * @param Post Object $post */ function save_custom_meta_boxes( $post_id, $post ) { // … Read more