Search for slugs usage in template files and do something
overclokk opened this issue · comments
The idea is to search in template files the preset slug usage, an example to be clear:
Let say that we start with a naming convention , for example a slug for a smaller font size "fontSize":"x-small"
, in this case the slug is x-small, if we want to chabge the name from x-small
to xs
we need a sistem to search in files and let us know where do we need to change the name, maybe doing a search and replace directly?
I have to think about this, but this will be only for development, not for production.
For db we can do this with wp-cli.
Try Rector with a custo rule to do this, it should be better than a search and replace
`'