Skip to main content
Login Join
Snippet · PHP

Customize WooCommerce Add to Cart Text

Shared by Yusuf mudagal · May 3, 2026 · @woocommerce_product_add_to_cart_text

30 views
Back to Snippets

Changes the product archive add-to-cart button label without editing WooCommerce templates.

add_filter( 'woocommerce_product_add_to_cart_text', 'wpfolks_archive_add_to_cart_text' );

function wpfolks_archive_add_to_cart_text() {
    return __( 'Add to basket', 'wpfolks' );
}
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments