MACscr Posted September 30, 2014 Share Posted September 30, 2014 Is there a hook I can use so that when a user updates their credit card info, I can fun a particular function? Right now I pretty much have to do the check on every client area page which I would like to avoid if possible: function hook_foobar_credit_card($vars=null) { if ($vars['clientareaaction'] == "creditcard" && $vars['successful'] == true) { ...... } } add_hook("ClientAreaPage",1,"hook_foobar_credit_card"); 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted September 30, 2014 Share Posted September 30, 2014 How about this? 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted September 30, 2014 Author Share Posted September 30, 2014 Thanks! No idea how I missed that. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.