Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search for slugs usage in template files and do something #1

Open
overclokk opened this issue Oct 31, 2021 · 1 comment
Open

Search for slugs usage in template files and do something #1

overclokk opened this issue Oct 31, 2021 · 1 comment
Assignees

Comments

@overclokk
Copy link
Contributor

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.

@overclokk overclokk self-assigned this Oct 31, 2021
@overclokk
Copy link
Contributor Author

Try Rector with a custo rule to do this, it should be better than a search and replace

`'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant