Change permalink structure specific category

I have a specific category that all posts that are in that category must follow the following structure:

category-name/child-category-name(if any)/post-name

The other posts will remain with the current base structure defined which is %postname%

What filter, hook that can change the permalink of these posts? How would it be?

Topic rewrite-rules php permalinks customization Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.