سلام
این کد رو به functions.php قالب اضافه کنید.
<?php
/**
* function for change add to cart btn text
* @return string text of the cart btn
*/
function wp_parsi_woo_custom_cart_button_text() {
return __('خرید محصول', 'woocommerce');
}
// بسته به ورژنووکامرس، فیلتر مناسب رو انتخاب کنید
add_filter('single_add_to_cart_text', 'wp_parsi_woo_custom_cart_button_text');
add_filter( 'add_to_cart_text', 'wp_parsi_woo_custom_cart_button_text' ); // < 2.1
add_filter( 'woocommerce_product_single_add_to_cart_text', 'wp_parsi_woo_custom_cart_button_text' ); // 2.1 +