Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save devendrabisht/f256bc17b9e26ac82b27795b333b0038 to your computer and use it in GitHub Desktop.
Save devendrabisht/f256bc17b9e26ac82b27795b333b0038 to your computer and use it in GitHub Desktop.
Get data posted from Ninja Popup using hook and use data captured for other purpose.
/**
* Code to get data posted from ninja popup.
*/
add_action( 'ninja_popups_send_form', 'learnwithbisht_ninja_popups_send_form', 10, 1 );
function learnwithbisht_ninja_popups_send_form( $filterAndActionData ) {
$post_data = $filterAndActionData['data']['post'];
$popup_ID = $post_data['popup_ID'];
$email = $post_data['email'];
/** write code here to use data as per requirement **/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment