Skip to content

Instantly share code, notes, and snippets.

@DustinHartzler
Last active August 1, 2016 21:25
Show Gist options
  • Save DustinHartzler/a18744454599162be57dbe497450166e to your computer and use it in GitHub Desktop.
Save DustinHartzler/a18744454599162be57dbe497450166e to your computer and use it in GitHub Desktop.
function customise_product_brand_slug ( $tax ) {
$tax['rewrite']['slug'] = 'artists';
$tax['labels']['name'] = 'Artists';
$tax['labels']['add_new_item'] = 'Add New Artist';
$tax['labels']['search_items'] = 'Search Artists';
$tax['labels']['all_items'] = 'All Artists';
$tax['labels']['edit_item'] = 'Update Artist';
$tax['labels']['update_item'] = 'Update Artist';
$tax['labels']['new_item_name'] = 'New Artist Name';
return $tax;
}
add_filter( 'register_taxonomy_product_brand', 'customise_product_brand_slug' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment