Plugin Directory

Changeset 2238250


Ignore:
Timestamp:
02/04/2020 11:13:31 AM (6 years ago)
Author:
crmthrive
Message:

Version 1.1 released with support for ninja forms and wp forms

Location:
crm-thrive
Files:
30 added
2 edited

Legend:

Unmodified
Added
Removed
  • crm-thrive/trunk/crm-thrive.php

    r2238081 r2238250  
    55 * Plugin URI: https://www.crmthrive.com/
    66 * Description: Allows to generate leads and save to CRM thrive by using various contact form plugins.
    7  * Version: 1.0
     7 * Version: 1.1
    88 * Author: CRM Thrive
    99 * Author URI: https://www.crmthrive.com/
     
    1111 */
    1212
    13 /*  Copyright 2020  Yashan Mittal  (email : yashanmittal@gmail.com)
     13/*  Copyright 2020  CRM Thrive  (email : development@crmthrive.com)
    1414
    1515    This program is free software; you can redistribute it and/or modify
     
    3535require_once WSL_INCLUDES_DIR . '/class-wsl-api.php';
    3636require_once WSL_INCLUDES_DIR . '/class-wsl-cf7-api.php';
     37require_once WSL_INCLUDES_DIR . '/class-wsl-wpf-api.php';
     38require_once WSL_INCLUDES_DIR . '/class-wsl-ninja-api.php';
    3739
    3840if(is_admin()){
     
    9799//    }
    98100}
     101
     102function wsl_ninja_forms_after_submission( $form_data ){
     103    $laravel_api = new Wsl_Ninja_Api($form_data['fields_by_key']);
     104    $laravel_api->set_submission_instance($form_data);
     105    $laravel_api->call();
     106}
     107add_action( 'ninja_forms_after_submission', 'wsl_ninja_forms_after_submission' );
     108
     109function wsl_wpf_process_entry_save( $fields, $entry, $form_id, $form_data ) {
     110 
     111    $laravel_api = new Wsl_Wpf_Api($fields);
     112    $laravel_api->set_submission_instance($form_data);
     113    $laravel_api->call();
     114}
     115add_filter( 'wpforms_process_entry_save', 'wsl_wpf_process_entry_save', 10, 4 );
  • crm-thrive/trunk/readme.txt

    r2238078 r2238250  
    44Requires at least: 2.0
    55Tested up to: 5.3.2
    6 Stable tag: 1.6.2
     6Stable tag: 1.1
    77Requires PHP: 5.2.4
    88License: GPLv2 or later
     
    2828= 1.0 =
    2929* Initial Version
     30
     31= 1.1 =
     32* Support for Ninja Forms added
     33* Support for WPForms added
Note: See TracChangeset for help on using the changeset viewer.