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;
}

6 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?

Leave a Reply