»  Content

Excerpt

This is the post content.

/* Change text on Return to Shop button in the Cart */
add_filter( 'gettext', 'change_woocommerce_return_to_shop_text', 20, 3 );
function change_woocommerce_return_to_shop_text( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case 'Return to shop' :
                $translated_text = __( 'Вернуться на Главную', 'woocommerce' );
                break;
        }
    return $translated_text;
}

Оставьте комментарий