Set id of cf7 in the data save function [closed] July 26, 2022 by Tarik Billa Try this: // Get current form. $wpcf7 = WPCF7_ContactForm::get_current(); $contact_form_id = $wpcf7->id;