PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

(Dynamic) Custom Tax Lable?

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi.

As a developer, I'm working for a customer that wishes to have the category filter name (custom_tax_label) changing when a sub-category has been filtered.

How would one implement a dynamic prefixed title to the existing taxonomy label title?

Following is an example describing what the customer wishes:

 

E.g. product category structure:

Root-Category: A
 - Sub-category: AA
 - Sub-category: AB
 - ...

Root-Category: B
 - Sub-category: BA
 - Sub-category: BB
- ...

E.g. if sub-category AB is filtered:

Category Filter:

A_name + custom_tax_label
 - AA
 - AB
 - ...

E.g. if sub-category BA is filtered:

Category Filter:

B_name + custom_tax_label
 - BA
 - BB
 - ...

This would make the title of the category widget become tailored to specific sub-categories, and very useful when activating"Hide empty terms".

Is there by any chance an existing Filter Hook I can use to implement the logic described above?

Hello

Unfortunately the plugin does not have such a hook.

If you want to do this without changing the plugin code - you need JS customization