Skip to main content

Rename WooCommerce in WordPress admin

If you’re setting up an online shop for a client, sometimes it’s good to mask that you’re using software like WooCommerce, just so it looks like a more custom job.

Just add this to your functions.php in your theme and rename where I have “Store Settings” to what ever you want!

// Rename WooCommerce to Shop

add_action( 'admin_menu', 'rename_woocoomerce', 999 );

function rename_woocoomerce()
{
    global $menu;

    // Pinpoint menu item
    $woo = rename_woocommerce( 'WooCommerce', $menu );

    // Validate
    if( !$woo )
        return;

    $menu[$woo][0] = 'Store Settings';
}

function rename_woocommerce( $needle, $haystack )
{
    foreach( $haystack as $key => $value )
    {
        $current_key = $key;
        if(
            $needle === $value
            OR (
                is_array( $value )
                && rename_woocommerce( $needle, $value ) !== false
            )
        )
        {
            return $current_key;
        }
    }
    return false;
}

10 thoughts to “Rename WooCommerce in WordPress admin”

    1. Hi Erick

      I just tested it, it’s working on the latest version of WooCoomerce, did you put it in your functions.php file exactly how it is in this snippet?

  1. Thanks for the code. Instead of changing WooCommerce I wanted to change the woocommerce Products tab instead. All I had to do was switch WooCommerce with Products in your code, change the name of Store Setting to what I wanted, and it worked like a charm

  2. It works, but if you go to “Products Tab”, it still shows on the top as “Woocommerce/Products” Is there anyway to change this, generally the client has access to the WP-Dashboard as a “Shop Manager”

Leave a Reply