Skip to content

Commit 76950d3

Browse files
authored
gw-format-date-merge-tags.php: Updated default configuration to apply to all forms with no locale.
1 parent 7d2ea71 commit 76950d3

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

gravity-forms/gw-format-date-merge-tags.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin URI: https://gravitywiz.com/gravity-forms-date-merge-tags/
1010
* Description: Adds merge tag modifiers for formatting date merge tags using PHP Date Formats.
1111
* Author: Gravity Wiz
12-
* Version: 0.5
12+
* Version: 0.6
1313
* Author URI: https://gravitywiz.com
1414
*/
1515
class GW_Format_Date_Merge_Tag {
@@ -98,12 +98,15 @@ public function is_applicable_form( $form ) {
9898

9999
# Configuration
100100

101-
new GW_Format_Date_Merge_Tag( array(
102-
'form_id' => 123,
103-
) );
101+
new GW_Format_Date_Merge_Tag();
104102

105-
# Configuration with locale enabled.
106-
// new GW_Format_Date_Merge_Tag( array(
107-
// 'form_id' => 123,
103+
# Apply locale to all forms.
104+
//new GW_Format_Date_Merge_Tag( array(
108105
// 'locale' => 'fr_FR',
109-
// ) );
106+
//) );
107+
108+
# Apply locale to a specific form.
109+
//new GW_Format_Date_Merge_Tag( array(
110+
// 'form_id' => 123,
111+
// 'locale' => 'fr_FR',
112+
//) );

0 commit comments

Comments
 (0)