Skip to content
No results
  • Admin Panel
  • Security
  • Optimization
  • WooCommerce
    • General
    • Products
    • Coupon
    • Cart & Checkout
  • Management
  • Content
  • Media
  • Elementor
  • Gutenberg
Snipjar
No results
  • Admin Panel
  • Security
  • Optimization
  • WooCommerce
    • General
    • Products
    • Coupon
    • Cart & Checkout
  • Management
  • Content
  • Media
  • Elementor
  • Gutenberg
Snipjar
  • General, WooCommerce

Change “Add to cart” text

add_filter( 'woocommerce_product_add_to_cart_text', function( $text ) {
    if ( 'Add to cart' == $text ) {
        $text = __( 'Buy Now', 'woocommerce' );
    }

    return $text;
} );
Previous Post Disable automatically deleting trashed posts
Next Post Add custom CSS in the Admin dashboard
  • Privacy Policy

Curated with ❤️ by Snipjar.