Function using wpcf7_mail_sent no longer working
-
Great plugin! Some of my functions.php code no longer works after updating the plugin. This snippet is from a function that uses add_action on the “wpcf7_mail_sent” hook:
$form_data = WPCF7_Submission::get_instance();
if ( $form_data ) {
$formdata = $form_data->get_posted_data();
}
$is_admin = $formdata[‘is_admin’];This worked on the older version of the plugin. Can you explain how to properly get $is_admin now? Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Function using wpcf7_mail_sent no longer working’ is closed to new replies.