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