Press "Enter" to skip to content

Change the Woocommerce Products custom post type label

While this may be a fringe case, I felt the need to document this anyways.

I recently did a site where the client would sell products online, but also have a separate products section showing non-sellable items. What this means is needed a “Products” section on top of the built in products custom post type woocommerce adds. One solution I found was to change the labels for Woocommerce:

This just hooks in to the label outputs for the products CPT from Woocommerce and generates our own. The nk_get_cpt_labels function is just a helper function I use to output these quickly:

Now after I register my own custom post type of products I end up with the backend menu of: