Title: Button text change doesn&#8217;t work
Last modified: May 29, 2025

---

# Button text change doesn’t work

 *  Resolved [srw96601](https://wordpress.org/support/users/srw96601/)
 * (@srw96601)
 * [1 year ago](https://wordpress.org/support/topic/button-text-change-doesnt-work/)
 * Trying like hell to get the “Donate” on the button to change to “Contribute” 
   and have code snippets installed with this code that does not do anything either
   on the product page or the checkout page:
 * /**
    - Customize WooCommerce Order Button Text
      *
    - Use the ‘woocommerce_order_button_text’ filter to set a custom
    - order button text on the checkout page.
      *
    - [@return](https://wordpress.org/support/users/return/) string Custom button
      text.
      */add_filter(‘woocommerce_order_button_text’, ‘change_order_button_text’,
      15);function change_order_button_text() {// Set a constant custom textreturn‘
      Confirm Donation’;}
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbutton-text-change-doesnt-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jonas](https://wordpress.org/support/users/flinnn/)
 * (@flinnn)
 * [1 year ago](https://wordpress.org/support/topic/button-text-change-doesnt-work/#post-18495666)
 * Hi srw96601,
 * it seems like you are no longer using Donation Platform for WooCommerce, right?
 * Best,
   Jonas
 *  Thread Starter [srw96601](https://wordpress.org/support/users/srw96601/)
 * (@srw96601)
 * [1 year ago](https://wordpress.org/support/topic/button-text-change-doesnt-work/#post-18495676)
 * we are url has since changed: [https://sandyspringssociety.org/contribute/bottishelli/](https://sandyspringssociety.org/contribute/bottishelli/)
 * want to change Donate to “Contribute”. Using Code Snippets plugin btw
 *  Plugin Author [Jonas](https://wordpress.org/support/users/flinnn/)
 * (@flinnn)
 * [1 year ago](https://wordpress.org/support/topic/button-text-change-doesnt-work/#post-18496241)
 * Hi
 * Thanks for the prompt feedback.
   Can you please try to copy the exact code snippet
   provided in the documentation? [https://www.wc-donation.com/documentation/woocommerce-tips/changing-woocommerce-place-order-donate-now-button-text-based-on-cart-contents/](https://www.wc-donation.com/documentation/woocommerce-tips/changing-woocommerce-place-order-donate-now-button-text-based-on-cart-contents/)
   This worked for me.
 * Changing the “Donate” button for Style 4 is not easily possible in the current
   version. But I’ve added a new filter wcdp_donate_label that you can try out if
   you want: [https://www.wc-donation.com/documentation/support/installing-the-latest-development-version/](https://www.wc-donation.com/documentation/support/installing-the-latest-development-version/)
 * Filter usage:
 * add_filter(‘wcdp_donate_label’, function($button_text) {
   return ‘Continue’;});
 * Best,
   Jonas

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Button text change doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/wc-donation-platform/assets/icon.svg?rev=2611888)
 * [Donation Platform for WooCommerce: Fundraising & Donation Management](https://wordpress.org/plugins/wc-donation-platform/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-donation-platform/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-donation-platform/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-donation-platform/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-donation-platform/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-donation-platform/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jonas](https://wordpress.org/support/users/flinnn/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/button-text-change-doesnt-work/#post-18496241)
 * Status: resolved