Joshua David Nelson

Bullshit Free WordPress Development

  • Services
  • Code
  • About
  • Contact

Rename WooCommerce “Brands” to “Manufacturers”

A useful way of filtering the taxonomy arguments in WooCommerce's 'product_brand' taxonomy.

<?php
/**
* Rename WooCommerce "Brands" to "Manufacturers"
*
* @param array $args
*
* @return array
*/
add_filter( 'register_taxonomy_product_brand', 'woocomerce_brands_filter', 10, 1 );
function woocomerce_brands_filter( $args ) {
// Change the labels
$args['label'] = __( 'Manufacturers', 'custom' );
$args['labels'] = array(
'name' => __( 'Manufacturers', 'custom' ),
'singular_name' => __( 'Manufacturer', 'custom' ),
'search_items' => __( 'Search Manufacturers', 'custom' ),
'all_items' => __( 'All Manufacturers', 'custom' ),
'parent_item' => __( 'Parent Manufacturer', 'custom' ),
'parent_item_colon' => __( 'Parent Manufacturer:', 'custom' ),
'edit_item' => __( 'Edit Manufacturer', 'custom' ),
'update_item' => __( 'Update Manufacturer', 'custom' ),
'add_new_item' => __( 'Add New Manufacturer', 'custom' ),
'new_item_name' => __( 'New Manufacturer Name', 'custom' )
);
return $args;
}
view raw rename-woocommerce-brands.php hosted with ❤ by GitHub

Source: https://gist.github.com/joshuadavidnelson/5a8ad8045ad752207a110e6afce41538

Tags: Taxonomy, woocommerce

Previous Code:
Default Category and Tag Archive Titles in Genesis 2.2.7
Back to the Code Snippets
Next Code:
Allow shortcodes in Genesis Archive Intro Text
  • Twitter
  • RSS Feed URL

About Me

I'm a WordPress Engineer. I build sleek, custom websites with WordPress and Genesis.

See my services and my recent work.

Contact me to get your project started.

Gravity Forms Plugin for WordPress Fastest WordPress Hosting

Recent Posts

  • Using Font Awesome Icons for WooCommerce Grid / List Toggle
  • Disable Blog: WordPress Gone Blog-less
  • Category (Taxonomy) Dropdown Filtered By Post Type
  • Weather in WordPress with Dark Sky
  • Fixing Your Deprecated Widget Constructors in WordPress 4.3
  • Twitter
  • RSS Feed URL
  • Code Snippets
  • My Plugins
  • Make a Payment

© Joshua David Nelson | Hand-Forged | WordPress + Genesis | Terms of Service | Legal | Contact