Support » Plugin: Save Contact Form 7 » Disassociate from CF7 version

  • Hello.
    I use this plugin in order to have several tables depending of the form, and it’s great!!
    The only thing is when CF7 updates, the version changes and this plugin creates a new empty table. I need to keep my data always in the same table, independently of the CF7 version.
    Is there any way to do this??
    Thanks!

    Previously, in order to do what I need, i have changed some code:

    // Se aƱade AND CF7_form_id = %d para evitar que se cambien todos los formularios que apunten a la misma tabla.

    
            $CF7_form_id = $obj->id();
            $sql_alter_lookup = "UPDATE SaveContactForm7_lookup SET <code>CF7_created_title</code> = %s WHERE <code>CFDBA_tbl_name</code> = %s AND <code>CF7_form_id</code> = %d";
            $wpdb->query($wpdb->prepare($sql_alter_lookup, $CF7_form_title, $table, $CF7_form_id));
    • This topic was modified 1 year, 4 months ago by  orodruim.
    • This topic was modified 1 year, 4 months ago by  orodruim.
  • The topic ‘Disassociate from CF7 version’ is closed to new replies.