Plugin Directory

Changeset 2628048


Ignore:
Timestamp:
11/11/2021 11:24:49 AM (4 years ago)
Author:
crmthrive
Message:

Added Gutenberg form support

Location:
crm-thrive
Files:
32 added
2 edited

Legend:

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

    r2600483 r2628048  
    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.13
     7 * Version: 1.14
    88 * Author: Thrive
    99 * Author URI: https://profiles.wordpress.org/crmthrive/
     
    4949require_once WSL_INCLUDES_DIR . '/class-wsl-thriveform-api.php';
    5050require_once WSL_INCLUDES_DIR . '/class-wsl-formidable-api.php';
     51require_once WSL_INCLUDES_DIR . '/class-wsl-ug-gutenberg-form-api.php';
     52
    5153
    5254if(is_admin()){
     
    276278    $laravel_api->call();
    277279}
     280
     281add_action( 'wp_ajax_uagb_process_forms', 'wsl_gutenberg_forms' );
     282add_action( 'wp_ajax_nopriv_uagb_process_forms', 'wsl_gutenberg_forms' );
     283
     284function wsl_gutenberg_forms(){
     285    if(!is_send_to_crm()){
     286        return false;
     287    }
     288    $fields_data = $_POST;
     289
     290    $laravel_api = new Wsl_Gutenberg_Api($fields_data);
     291    $laravel_api->set_submission_instance($fields_data);
     292    $laravel_api->call();
     293}
  • crm-thrive/trunk/readme.txt

    r2600483 r2628048  
    44Requires at least: 2.0
    55Tested up to: 5.6
    6 Stable tag: 1.13
     6Stable tag: 1.14
    77Requires PHP: 5.2.4
    88License: GPLv2 or later
     
    7575= 1.13 =
    7676* Fixes for typeform and fluent forms
     77
     78= 1.14 =
     79* Added Gutenberg form support
Note: See TracChangeset for help on using the changeset viewer.