⚠ 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

Passing Parameter from custom add_action



Darren Wamsley
  • profile picture
  • Member

Posted 18 September 2012 - 13:33 PM

How do I go about passing a parameter based on the current row id to a custom add_action. The custom add_action will be linking to retrieve data for editing based on the row id ?

midnigther
  • profile picture
  • Member

Posted 18 September 2012 - 18:46 PM

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

Darren Wamsley
  • profile picture
  • Member

Posted 20 September 2012 - 00:47 AM

Thanks midnigther , but how do I pass the id of a current row the action?

midnigther
  • profile picture
  • Member

Posted 20 September 2012 - 01:04 AM

[member=Darren Wamsley] I think this resolve your problem:


//inside callback add_action
$primary_key;