Rename Specified Vendor Dash Product Editor Tabs

This snippet gives you the ability to rename the product editor tabs. On my site, I overrode the template to remove all the information inside the default shipping tab except for the weight information (used in customized CSV file export for use with shipping services). So, I wanted to rename it to “Weight” and this does that.

I also renamed the entire “Attributes” and “Variations” process to make it easier for my casual vendors to understand. In this case, I went with “Variation Data” instead of attributes, since attributes are only used to create variations on my site.

As always, this is either added to your Child Theme’s functions.php file, or consider using the My Custom Functions Pro plugin to manage and organize all your snippets.

add_filter('wcmp_product_data_tabs', 'rename_wcmp_product_data_tab_attributes', 99);

function rename_wcmp_product_data_tab_attributes ($tabs){
    $tabs['shipping']['label'] = __( 'Weight' );
    $tabs['attribute']['label'] = __( 'Variation Data' );
    return $tabs;
}

Is this no longer relevant or not working? Please let us know in the comments!

Comments on this post

Your email address will not be published. Required fields are marked *