Voxel Toolkit 1.6.1 is Available!

Allow Users to Add New Categories/Terms/Taxonomies

The Add Category function allows users to add new taxonomy terms directly from the frontend Create Post form. When the category they need doesn’t exist, they can suggest a new one instead of being stuck.


Overview

Sometimes your taxonomy doesn’t include every possible category users might need. This function adds an “Add New” option to taxonomy fields so users can suggest new terms. You can optionally require admin approval before new terms appear to other users.

Key Features

  • Per-field toggle to enable term creation
  • Role-based visibility with Voxel override system
  • Optional approval workflow
  • App Events for admin notifications
  • User instructions for pending terms

Setup Instructions

Step 1: Enable the Function

  1. Navigate to Voxel Toolkit > Functions in your WordPress admin
  2. Find Add Category in the list
  3. Toggle the switch to enable the function
  4. Click Save Changes

Step 2: Enable on Taxonomy Fields

  1. Go to Post Type Editor for your post type
  2. Edit the fields
  3. Click on a taxonomy field to edit it
  4. Find the Allow Adding New Terms toggle
  5. Enable it and configure approval settings
  6. Save the post type

Field Settings

Each taxonomy field can be configured with:

SettingDescriptionDefault
Allow Adding TermsEnable the “Add New” optionDisabled
Require ApprovalNew terms need admin approvalEnabled

Role-Based Access

You can control which user roles can add new terms using Voxel’s override system:

  1. In the taxonomy field settings, find the role overrides
  2. Add overrides for specific roles
  3. Enable or disable term creation per role

Example Configurations

  • Only editors can add – Disable for all, enable override for Editor role
  • Premium users can add – Enable override for premium membership level
  • Everyone can add – Enable for all with approval required

Approval Workflow

When approval is required:

  1. User enters a new term name
  2. Term is created with “pending” status
  3. User sees message that term is pending approval
  4. Admin receives notification (if configured)
  5. Admin approves or rejects the term
  6. Once approved, term appears for all users

Pending Terms

Terms pending approval:

  • Are visible only to the user who created them
  • Can be used by that user on their posts
  • Won’t appear in search filters
  • Are hidden from other users until approved

App Events

Notify admins when new terms are submitted:

  1. Go to Voxel > App Events
  2. Find New Term Submitted
  3. Configure email or in-app notification
  4. Include term name and taxonomy in the message

Available dynamic tags for the notification:

  • Term name
  • Taxonomy name
  • User who submitted
  • Post type

Managing Terms

Approve or reject pending terms in WordPress:

  1. Go to the taxonomy in WordPress admin (e.g., Categories)
  2. Look for terms with “Pending Approval” status
  3. Edit the term to approve (remove pending flag)
  4. Or delete the term to reject

Use Cases

Service Categories

Let service providers suggest new service types that aren’t in your predefined list.

Product Tags

Allow sellers to create new product tags for better organization.

Location Subcategories

Let users add neighborhood or district names that aren’t in your location taxonomy.

Skill Tags

Allow professionals to add skill tags for their profiles.


User Experience

Adding a New Term

  1. User opens the taxonomy field dropdown
  2. Types to search for their category
  3. If not found, “Add New” option appears
  4. User clicks to add their new term
  5. Message shows term is pending (if approval required)
  6. User can continue with their post

Troubleshooting

Add New Option Not Showing

  • Check the function is enabled
  • Verify “Allow Adding Terms” is enabled on the field
  • Check role-based overrides aren’t blocking your user
  • Search for a term that doesn’t exist to trigger the option

New Term Not Visible to Others

  • This is expected if approval is required
  • Admin needs to approve the term first
  • Check the taxonomy for pending terms

Admin Not Getting Notifications

  • Configure the App Event in Voxel > App Events
  • Verify email sending is working in WordPress
AI Assistant