Skip to content

Instantly share code, notes, and snippets.

@codersaiful
Created November 1, 2023 11:30
Show Gist options
  • Save codersaiful/3e6aa7c9c5b5cd33d490ac85c3e7182b to your computer and use it in GitHub Desktop.
Save codersaiful/3e6aa7c9c5b5cd33d490ac85c3e7182b to your computer and use it in GitHub Desktop.
<?php
//Add code to your functions.php file or using code snippet plugin from this line
add_filter('wpto_searchbox_taxonomy_name','wpto_custom_searchbox_taxonomy_name', 10, 3);
function wpto_custom_searchbox_taxonomy_name($taxonomy_menu_name, $taxonomy_details, $table_id){
//If want to set based on $table_id
//Here 123 is your selected table id. and uncomment following line
// if($table_id !== 123) return $taxonomy_menu_name;
if($taxonomy_menu_name == 'Categories'){
return "Music Style";
}
return $taxonomy_menu_name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment