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

Feature / labels #17

Merged
merged 7 commits into from
Jul 9, 2016
Merged

Feature / labels #17

merged 7 commits into from
Jul 9, 2016

Conversation

aaemnnosttv
Copy link
Owner

This PR fixes #6 with easy handling of PostType labels.

All post types require labels at registration time. Previously, registering a post type with Silk did not set post type labels for all labels which referenced the single or plural forms of the label.

This feature enables the most common use cases to set all custom post type labels using the provided methods:

$post_type->oneIs('Book')
    ->manyAre('Books')
    ->register();

@aaemnnosttv aaemnnosttv added this to the v0.10 milestone Jul 9, 2016
@coveralls
Copy link

coveralls commented Jul 9, 2016

Coverage Status

Changes Unknown when pulling 19d2f5d on feature/labels into * on master*.

@aaemnnosttv aaemnnosttv merged commit 262c7ce into master Jul 9, 2016
@aaemnnosttv aaemnnosttv deleted the feature/labels branch July 15, 2016 22:12
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.

Improve PostTypeBuilder label handling with defaults
2 participants