Как переименовать в Woocommerce Подытог на Итого
Добавляете ниже приведённый код в файл functions.php своей темы и всё!
1 2 3 4 5 6 7 8 9 | add_filter( 'gettext' , 'rename_woocommerce_subtotal' , 10, 3); function rename_woocommerce_subtotal( $translated_text , $text , $domain ) { if ( $domain == 'woocommerce' ) { if ( $text == 'Subtotal' || $text == 'Подытог' ) { $translated_text = 'Итого' ; } } return $translated_text ; } |