-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautofill-list-row-count.php
executable file
·40 lines (30 loc) · 1.09 KB
/
autofill-list-row-count.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Plugin Name: Gravity Forms Autofill List Row Count
* Plugin URI: https://typewheel.xyz/project/autofill-list-row-count
* Description: Adds option for autofilling the number of rows in a list to another field within a Gravity Form.
* Version: 1.0.beta4
* Author: Typewheel
* Author URI: https://typewheel.xyz/
*
* @package Gravity Forms Autofill List Row Count
* @version 1.0.beta4
* @author uamv
* @copyright Copyright (c) 2017, uamv
* @link http://typewheel.xyz
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
define( 'GF_AUTOFILL_LIST_ROW_COUNT_VERSION', '1.0.beta4' );
add_action( 'gform_loaded', array( 'GF_Autofill_List_Row_Count_Bootstrap', 'load' ), 5 );
class GF_Autofill_List_Row_Count_Bootstrap {
public static function load() {
if ( ! method_exists( 'GFForms', 'include_addon_framework' ) ) {
return;
}
require_once( 'class-gfautofilllistrowcount.php' );
GFAddOn::register( 'GFAutofillListRowCount' );
}
}
function gf_autofill_list_row_count() {
return GFAutofillListRowCount::get_instance();
}