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

Simplify CPT and taxonomy registration by using the class name also as a slug #158

Merged
merged 2 commits into from
Nov 3, 2022

Conversation

timiwahalahti
Copy link
Contributor

We are doing some stupid extra work by defining the slug and class name individually when both are almost always the same.

In this PR, a change is made so that the class name gets used as a slug automatically. Slug is transformed to a lowercase version, and the underscore is changed to a dash for the file name.

This simplified the cpt & tax registration process.

@height
Copy link

height bot commented Nov 3, 2022

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@ronilaukkarinen ronilaukkarinen merged commit 0d18586 into master Nov 3, 2022
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

Successfully merging this pull request may close these issues.

2 participants