Last active
May 30, 2019 03:49
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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