Skip to content

Instantly share code, notes, and snippets.

@smileBeda
Created December 9, 2020 12:39
Show Gist options
  • Save smileBeda/ed899b27c038f3078ee041ecf0c8c246 to your computer and use it in GitHub Desktop.
Save smileBeda/ed899b27c038f3078ee041ecf0c8c246 to your computer and use it in GitHub Desktop.
add_filter( 'init', 'custom_registered_taxonomy_admin_labels' );
function custom_registered_taxonomy_admin_labels() {
global $wp_taxonomies;
$labels = &$wp_taxonomies['your_taxonomy']->labels;//change to your taxonomy slug
$labels->name = 'NAME';
$labels->singular_name = 'SING_NAME';
$labels->add_new = 'Add NAME';
$labels->add_new_item = 'Add NAME';
$labels->edit_item = 'Edit NAME';
$labels->new_item = 'NAME';
$labels->view_item = 'View NAME';
$labels->search_items = 'Search NAME';
$labels->not_found = 'No NAME found';
$labels->not_found_in_trash = 'No NAME found in Trash';
$labels->all_items = 'All NAMES';
$labels->menu_name = 'NAMES';
$labels->name_admin_bar = 'NAME';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment