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

Taxonomy custom label for specific categories

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.

Hello, thanks for your great plugin! I would like to know if there is any snippet in order to change taxonomy custom label for specific categories. For example, in structure tab, i click on additional options and then i enter a taxonomy custom label. That label is correctly shown in all of my categories, but i would like to change that name for some categories and use another custom label. Is there any way to achieve that?
Thanks for your time!

Hello

Unfortunately the plugin does not have such hooks.

In this case, you need to customize the plugin code

Hello,

Thanks for your reply! I used below code and it seems to work ( i posted it here in case of anyone else needs anything similar ):

function get_current_url(){
$pageURL = 'http';
if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] =="on") {
$pageURL .="s";
}
$pageURL .="://";
if ($_SERVER["SERVER_PORT"] !="۸۰") {
$pageURL .= $_SERVER["SERVER_NAME"] .":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
}
return $pageURL;
}

add_action( 'wp_head', function () {
$url = get_current_url();
$cat_url = array("/category1/","/category2/");
foreach ($cat_url as $cats){
if((strpos($url, $cats) !== false)) {
?>
<script>
jQuery(document).ready(function( $ ){
var content = 'Distillery <a href="javascript: void(0);" title="toggle" class="woof_front_toggle woof_front_toggle_closed" data-condition="closed">+</a>';
$('.woof_container_pa_paragwgos .woof_container_inner h4').html(content);
});

</script>
<?php } } } );

I used get_current_url() function from: https://stackoverflow.com/questions/52791916/statement-that-checks-whether-a-url-contains-a-particular-path

Thanks again for your time!
Best regards,
Alex

Hello Alex

Thank you for cooperation :)