⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

How to use onclick action on add_action button



Chanh Nguyen
  • profile picture
  • Member

Posted 13 September 2015 - 04:03 AM

Hi, i user bootstrap theme and add add_action resetpassword button. I want to call onclick action but don't nknow how to do this. Anyone can help me? 


Amit Shah
  • profile picture
  • Member

Posted 15 September 2015 - 07:44 AM

Hi there,

 

In the add_action .. there is a parameter - for url_callback

http://www.grocerycrud.com/documentation/options_functions/add_action

here what you will be able to do is generate custom url for the action button. There is where you can set your callback..

 

Happy GCing :)