這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Gravitate Gforms API Helper

外掛說明

Author: Gravitate http://www.gravitatedesign.com

Description: This is Plugin Helper to allow you to easily setup an External API on Gravity Form Submissions. You can link multiple API calls to a single Gravity Form Submission. This does require a Developer to complete the API sections.

How to Use it:
https://wordpress.org/plugins/gravitate-gforms-api-helper/other_notes/

Requirements

  • Gravity Forms Plugin
  • WordPress 3.5 or above

HOW TO USE

Once installed and Activated you will be able to go into your Gravity Forms Settings and Add in a Custom API Call.
Ex. Sales Force
* You can create multiple calls separated by commas

Once you save that field you will now be able to go into a field in the the Form Editor and go the the Advanced Tab and place in the Field Name for the API you named.

Now everytime the form is submitted it will call any actions your create and submit the fields and their values.

To create actions just place the below code in your functions.php file of your theme or in another plugin.
replace {your_api_name} with the sanitized (lowercase with underscores) API name you added to the Form Settings.
Then place your own code in the “Send $data to API Here”.

add_action("ggah_submission_{your_api_name}", "your_function_hook_name_here_{your_api_name}", 10, 3);

function your_function_hook_name_here_{your_api_name} ($data, $form, $api)
{
    $api_failed = false;


    // Send $data to API Here


    // If Api Failed then set $api_failed = true;


    // This will send a Simple Email to the Admin to notify them of the error.
    if($api_failed)
    {
        if(function_exists('ggah_error_notification'))
        {
            $email = '';    // leave blank to use Admin Email
            $subject = '';  // leave blank to use Default
            $message = '';  // leave blank to use Default

            ggah_error_notification($email, $api, $subject, $message);
        }
    }
}

If using multiple calls then duplicate the code and place in your own code accordingly.

螢幕擷圖

  • Link the form by adding a "Custom API Call". You can have multiple by separating with commas.
  • Select which fields to send. Specify the exact field ID needed by the custom API Call.

安裝方式

  1. Upload the gravitate-gforms-api-helper folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

使用者評論

There are no reviews for this plugin.

參與者及開發者

以下人員參與了開源軟體〈Gravitate Gforms API Helper〉的開發相關工作。

將 Gravitate Gforms API Helper 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1

  • Fixed Empty values from not Submitting.

1.0.0

  • Initial Creation