How to change the "Woocommerce Status" text in dashboard widget

I want to change the "Woocommerce Status" text in dashboard widget. See the image:

I found this code in http://stackoverflow.com but it not working.

function change_add_to_cart_message( $translated, $text, $domain  ) {
    global $pagenow;
    if( $text === 'WooCommerce status'  $domain === 'woocommerce'  is_admin()  $pagenow === 'index.php' ){
        $translated = __( 'WooCommerce summary', $domain );
    }
    return $translated;
}
add_filter(  'gettext',  'change_add_to_cart_message', 10, 3 );

Topic woocommerce-offtopic widget-text dashboard Wordpress

Category Web


/*Wedgets Status*/
function change_add_to_cart_message( $translated, $text, $domain  ) {
    global $pagenow;
    if( $text === 'WooCommerce Status' && $domain === 'woocommerce' && is_admin() && $pagenow === 'index.php' ){
        $translated = __( 'Resumo de Vendas', $domain );
    }
    return $translated;
}
add_filter(  'gettext',  'change_add_to_cart_message', 10, 3 );
/*Wedgets Reviews*/
function woocommerce_dashboard_recent_reviews( $translated, $text, $domain  ) {
    global $pagenow;
    if( $text === 'WooCommerce Recent Reviews' && $domain === 'woocommerce' && is_admin() && $pagenow === 'index.php' ){
        $translated = __( 'Avaliações de Produtos', $domain );
    }
    return $translated;
}
add_filter(  'gettext',  'woocommerce_dashboard_recent_reviews', 10, 3 );

Just Change the S in status word to the uppercase, so instead of WooCommerce status use WooCommerce Status. Thanks to Sally CJ

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.