Plugin Directory

Changeset 2422101


Ignore:
Timestamp:
11/20/2020 08:02:47 AM (5 years ago)
Author:
crmthrive
Message:

SmartForm Plugin Added, Issue Fixed in Brizy Builder

Location:
crm-thrive
Files:
28 added
3 edited

Legend:

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

    r2415572 r2422101  
    55 * Plugin URI: https://www.crmthrive.com/
    66 * Description: Save the leads to Thrive system generated by various form plugins. We currently support CF7, Ninja Forms, WP Forms, Gravity Forms and Elementor Builder.
    7  * Version: 1.8
     7 * Version: 1.9
    88 * Author: Thrive
    99 * Author URI: https://profiles.wordpress.org/crmthrive/
     
    4545require_once WSL_INCLUDES_DIR . '/class-wsl-beaver-api.php';
    4646require_once WSL_INCLUDES_DIR . '/class-wsl-wpbrizy-api.php';
     47require_once WSL_INCLUDES_DIR . '/class-wsl-smartforms-api.php';
    4748
    4849if(is_admin()){
     
    209210}
    210211
    211 add_action( 'wp_ajax_brizy_submit_form', 'wsl_brizy' );
     212add_action('wp_ajax_brizy_submit_form', 'wsl_brizy');
    212213add_action("wp_ajax_nopriv_brizy_submit_form", "wsl_brizy");
    213214
     
    222223    $laravel_api->call();
    223224}
     225
     226add_action( 'wp_ajax_rednao_smart_forms_save_form_values','wsl_smart_forms');
     227add_action( 'wp_ajax_nopriv_rednao_smart_forms_save_form_values','wsl_smart_forms');
     228
     229function wsl_smart_forms($data){
     230    if(!is_send_to_crm()){
     231        return false;
     232    }
     233    $fields_data = $_POST;
     234
     235    $laravel_api = new Wsl_SmartForms_Api($fields_data);
     236    $laravel_api->set_submission_instance($_POST);
     237    $laravel_api->call();
     238}
  • crm-thrive/trunk/includes/class-wsl-wpbrizy-api.php

    r2415572 r2422101  
    2424        $result = $this->send_call();
    2525        $this->process_result($result);
    26 
    27         die();
    2826    }
    2927   
  • crm-thrive/trunk/readme.txt

    r2415572 r2422101  
    44Requires at least: 2.0
    55Tested up to: 5.5.3
    6 Stable tag: 1.8
     6Stable tag: 1.9
    77Requires PHP: 5.2.4
    88License: GPLv2 or later
     
    5959* Error issues fixed
    6060* Enable sending to CRM Issues fixed
     61
     62= 1.9 =
     63* SmartForm Plugin Added
     64* Issue Fixed in Brizy Builder
Note: See TracChangeset for help on using the changeset viewer.