LH User Taxonomies
Simplify the process of adding support for custom taxonomies for Users. Just use register_taxonomy and everything else is taken care of.
The facts
- Rating
- 5★ from 8
- Active installs
- 300+
- Price
- Free
- Last updated
- 21 Mar 2021
- Added
- Mar 2015
- Requires WP
- 4.0
- Tested up to
- WP 5.7.17
- Downloads
- 13,358
Our analysis
AI-assistedLH User Taxonomies is a WordPress plugin that extends the default taxonomy functionality to users. It automates the process of registering user taxonomies, allowing you to create and manage custom taxonomies for user profiles. This plugin is suitable for developers looking to enhance user data organisation on their WordPress sites.
Once activated, you can register user taxonomies with specific attributes such as public visibility and admin column display. The plugin also addresses bugs from previous versions and supports capabilities for managing these taxonomies effectively.
Best for: Developers looking to manage user-related taxonomies on WordPress sites.
What it does well
- ✓Extends default taxonomy functionality to users
- ✓Automates registration of user taxonomies
- ✓Supports custom attributes for taxonomies
- ✓Fixes bugs from previous versions
- ✓Allows bulk editing of user taxonomies
Where it falls short
- •Limited information on additional features or use cases
Verdict
LH User Taxonomies provides a straightforward solution for adding custom taxonomies to user profiles, making it a useful tool for developers. However, detailed documentation or examples may be needed for effective implementation.
From the developer
shawfactor's own description of LH User Taxonomies, lightly tidied.
This plugin extends the default taxonomy functionality and extends it to users, while automating all the boilerplate code.
Once activated, you can register user taxonomies using the following code:
register_taxonomy('profession', 'user', array(
'public' =>true,
'single_value' => false,
'show_admin_column' => true,
'labels' =>array(
'name' =>'Professions',
'singular_name' =>'Profession',
'menu_name' =>'Professions',
'search_items' =>'Search Professions',
'popular_items' =>'Popular Professions',
'all_items' =>'All Professions',
'edit_item' =>'Edit Profession',
'update_item' =>'Update Profession',
'add_new_item' =>'Add New Profession',
'new_item_name' =>'New Profession Name',
'separate_items_with_commas'=>'Separate professions with commas',
'add_or_remove_items' =>'Add or remove professions',
'choose_from_most_used' =>'Choose from the most popular professions',
),
'rewrite' =>array(
'with_front' =>true,
'slug' =>'author/profession',
),
'capabilities' => array(
'manage_terms' =>'edit_users',
'edit_terms' =>'edit_users',
'delete_terms' =>'edit_users',
'assign_terms' =>'read',
),
));
Read more about registering taxonomies in the codex
This is heavily inspired by previous work by Justin Tadlock and also forks Damian Gostomskis plugin in the repository to add additional functionality, including:
- Fixes a bug with display of existing user taxonomies in the user-edit screen
- Fixes a bug with taxonomy count in the old plugin where deleting users did not update the count
- Add support for ‘single_value’ attribute when registering a user taxonomy for taxonomies which should only have one value.
- Properly supports the capabilities associated with the taxonomy when registered.
- Supports ‘show_admin_column’ attribute when registering the taxonomy in the same way as post taxonomies.
- Where ‘show_admin_column’ is true admins can assign user taxonomies using bulk edit functionality.
Check out our documentation for more information on how to register user taxonomies.
Like this plugin? Please consider leaving a 5-star review.
Love this plugin or want to help the LocalHero Project? Please consider making a donation.