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

Open
bobbingwide opened this Issue Mar 15, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment