Skip to content

Instantly share code, notes, and snippets.

@kankadev
Created February 3, 2023 19:50
Show Gist options
  • Save kankadev/6cb941aa63b5d25ec0259827520862f3 to your computer and use it in GitHub Desktop.
Save kankadev/6cb941aa63b5d25ec0259827520862f3 to your computer and use it in GitHub Desktop.
[Rename Elementor "add to cart" button] Rename Elementor (single) add to cart button. #elementor #wordpress #php #functions.php
add_filter('woocommerce_product_single_add_to_cart_text', function ($label) {
return 'Jetzt buchen!';
}, 9999999);
add_filter('woocommerce_product_add_to_cart_text', function ($label) {
return 'Jetzt buchen!';
}, 9999999);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment