I'm trying to update the slug for all the post within a specific custom post type, let's say "music".
Here is the code:
What I do know that the
enqueue_music_features only calls the
alert in the custom post type music, and that
auto_update_post_slug works by itself if you put it outside
I also tried putting the entire
auto_update_post_slug inside the hook, that didn't work either.
The main issue is that I'm not able to combine these two parts, even if they work on by themselves.