Đổi Shopping Cart – Checkout Details – Order Complete Sang Tiếng Việt trong wordpress đơn giản nhất.
![图片[1]-](https://24h68.com/wp-content/uploads/2022/03/24h68.com-doi-chu-trong-thanh-toan-gio-hang.jpg)
Các bạn chèn đoạn code dưới đây vào file funtions.php
trong child theme (theme con)
add_filter( 'gettext', function ( $strings ) { $text = array( 'SHOPPING CART' => 'Giỏ Hàng', 'CHECKOUT DETAILS' => 'Thanh Toán', 'ORDER COMPLETE' => 'Hoàn Tất', ); $strings = str_ireplace( array_keys( $text ), $text, $strings ); return $strings; }, 20 );
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
喜欢就支持一下吧