-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php
86 lines (79 loc) · 2.2 KB
/
config.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php if ( ! defined( 'ABSPATH' ) ) exit;
return array(
/*
* TAG
*/
'endpoint_url' => array(
'name' => 'endpoint_url',
'type' => 'textbox',
'group' => 'primary',
'label' => __( 'Endpoint URL', 'ninja-forms' ),
'placeholder' => 'https://my-app.org/endpoint/',
'value' => '',
'width' => 'full',
'use_merge_tags' => array(
'include' => array(
'calcs',
),
),
),
'endpoint_method' => array(
'name' => 'endpoint_method',
'type' => 'select',
'options' => array(
'GET' => array(
'label' => 'GET',
'value' => 'GET'
),
'POST' => array(
'label' => 'POST',
'value' => 'POST'
),
'PUT' => array(
'label' => 'PUT',
'value' => 'PUT'
),
'PATCH' => array(
'label' => 'PATCH',
'value' => 'PATCH'
),
),
'group' => 'primary',
'label' => __( 'HTTP Method', 'ninja-forms' ),
'value' => '',
'width' => 'full',
'use_merge_tags' => array(
'include' => array(
'calcs',
),
),
),
'success_message' => array(
'name' => 'success_message',
'type' => 'rte',
'group' => 'primary',
'label' => __( 'Message on Success', 'ninja-forms' ),
'placeholder' => '',
'width' => 'full',
'value' => __( 'Your data has been successfully submitted.', 'ninja-forms' ),
'use_merge_tags' => array(
'include' => array(
'calcs',
),
),
),
'error_message' => array(
'name' => 'error_message',
'type' => 'rte',
'group' => 'primary',
'label' => __( 'Message on Failure', 'ninja-forms' ),
'placeholder' => '',
'width' => 'full',
'value' => __( 'There was an error sending your data.', 'ninja-forms' ),
'use_merge_tags' => array(
'include' => array(
'calcs',
),
),
),
);