Created
          December 13, 2016 03:53 
        
      - 
      
- 
        Save joshuadavidnelson/5a8ad8045ad752207a110e6afce41538 to your computer and use it in GitHub Desktop. 
    Rename WooCommerce "Brands" to "Manufacturers"
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?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; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
For those who don't already know, add this code to your themes functions.php file for implementation