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

Add singular_name to custom taxonomies #16

Closed
bobbingwide opened this issue Mar 15, 2018 · 1 comment
Closed

Add singular_name to custom taxonomies #16

bobbingwide opened this issue Mar 15, 2018 · 1 comment
Assignees
Labels

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Mar 15, 2018

Custom taxonomies can be defined using oik-types.
The logic does not currently support user entry of a singular label.
When determining the singular version of the label it can produce unwanted results.
e.g. The custom taxonomy "Block Status" ends up with a singular label of "Block Statu".

Requirement

  • Add support for entry of singular name
  • Display both plural and singular labels in the taxonomy list
  • Generate default if not entered by user

Proposed solution

  • Change admin\oik-taxonomies.php to accept the singular_name field
  • Update oiktax_register_taxonomy() to pass the labels array to bw_register_custom_tags() or bw_register_custom_category().
  • May need to move bw_return_singular_name() to admin/oik-types.php
@bobbingwide
Copy link
Owner Author

delivered in 2.0.0-alpha-20181019, but tests not complete. Closing anyway.

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

No branches or pull requests

1 participant