Delete from WordPress when deleted in Formidable and Vice Versa
/** * Name: fw_deleteWPUserWithRegistration * Desc: Delete user from WordPress when deleted in Formidable registration form **/ add_action(‘frm_before_destroy_entry’, ‘fw_deleteWPUserWithRegistration’); function fw_deleteWPUserWithRegistration($entry_id) { $entry = FrmEntry::getOne($entry_id, true); if ($entry->form_id == MEMBER_REGISTRATION_FORM_ID) { $entry = FrmEntry::getOne($entry_id, true); $user_id = fw_getValueFromMetasByID($entry->metas, MEMBER_REGISTRATION_USER_ID_FIELD_ID); if…Continue reading