Title: Change button action
Last modified: April 28, 2018

---

# Change button action

 *  [infinizytech](https://wordpress.org/support/users/infinizytech/)
 * (@infinizytech)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/change-button-action/)
 * Hello,
 * I want to change add_action(‘woocommerce_proceed_to_checkout’, array($this, ‘
   ex_express_checkout_button’), 22); to add_action(‘woocommerce_after_cart_totals’,
   array($this, ‘ex_express_checkout_button’), 22);
 * Can you please help me?
 * I have tried but doesn’t work.
    remove_action(‘woocommerce_proceed_to_checkout’,
   array(Express_Checkout::get_loader(), ‘ex_express_checkout_button’), 22); add_action(‘
   woocommerce_after_cart_totals’, array(Express_Checkout::get_loader(), ‘ex_express_checkout_button’),
   22);
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fchange-button-action%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Change button action’ is closed to new replies.

 * ![](https://ps.w.org/express-checkout/assets/icon-256x256.png?rev=2412379)
 * [Express Checkout via PayPal for WooCommerce](https://wordpress.org/plugins/express-checkout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/express-checkout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/express-checkout/)
 * [Active Topics](https://wordpress.org/support/plugin/express-checkout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/express-checkout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/express-checkout/reviews/)

## Tags

 * [add_action](https://wordpress.org/support/topic-tag/add_action/)

 * 0 replies
 * 1 participant
 * Last reply from: [infinizytech](https://wordpress.org/support/users/infinizytech/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/change-button-action/)
 * Status: not resolved