Title: Widget callback function never saves the coupon code
Last modified: February 16, 2019

---

# Widget callback function never saves the coupon code

 *  Resolved [joaovpmamede](https://wordpress.org/support/users/joaovpmamede/)
 * (@joaovpmamede)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/widget-callback-function-never-saves-the-coupon-code/)
 * Hi, first of all thanks for the plugin.
 * I’ve been playing with it and noticed that the callback (`subscribe`) for the
   action on the widget (`wp_ajax_wcb_widget_subscribe`) is different than the one
   for the popup `wcb_email`.
    What happens is that the `subscribe` method never
   saves the coupon code and it almost feels that it’s incomplete. Changing the 
   callback for the widget action to `wcb_email` everything works fine.
 * Is there any reason for this? Why not share the same method?
    -  This topic was modified 7 years, 6 months ago by [joaovpmamede](https://wordpress.org/support/users/joaovpmamede/).

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

 *  [kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * (@kimvt1991)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/widget-callback-function-never-saves-the-coupon-code/#post-11212637)
 * Hi,
    Thank you for your feedback. I check the widget and find some missing. I
   will update to fix this. I dont share the same method for them because there 
   are some different job and message to handle between them.
 *  Thread Starter [joaovpmamede](https://wordpress.org/support/users/joaovpmamede/)
 * (@joaovpmamede)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/widget-callback-function-never-saves-the-coupon-code/#post-11212772)
 * Thanks for the quick answer.

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

The topic ‘Widget callback function never saves the coupon code’ is closed to new
replies.

 * ![](https://ps.w.org/woo-coupon-box/assets/icon-256x256.gif?rev=3080869)
 * [Coupzy Coupon Box for WooCommerce](https://wordpress.org/plugins/woo-coupon-box/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-coupon-box/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-coupon-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-coupon-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-coupon-box/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [joaovpmamede](https://wordpress.org/support/users/joaovpmamede/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/widget-callback-function-never-saves-the-coupon-code/#post-11212772)
 * Status: resolved