=== GravityWP - Advanced Merge Tags ===
Contributors: gravitywp
Tags: gravity forms, gravityforms, mergetags, merge tags
Requires at least: 3.0.1
Tested up to: 6.2
Requires PHP: 7.0
Stable tag: 1.4.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

This Gravity Forms Add-On adds extra Merge Tag modifiers (and a lot of power). From the most common used functions like capitalize and trim to changing date formats.

== Description ==

This plugin provides advanced functionality to the default Gravity Forms Number Field, like rounding numbers, only absolute numbers, fixed point notation up to 5 decimals, range calculation, custom units like % or m2, show number field as slider.

= Powerful new Merge Tags =
* Get the current timestamp - Returns the timestamp on the moment the Merge Tag is used. Can be used to check if timestamp is expired.
* Get the current slug (or part of the slug) - Returns the slug or part of the slug (parent) for example to check which part of the website the Merge Tag is loaded.
* Modify dates - Adding days, weeks, formatting in different ways and to count the number of entries that match a specific field.

= Handy extra Modifiers =
* Text transform - Modifier to transform the text to uppercase, lowercase, first character uppercase or lowercase or uppercase all words.
* Length of string & word count - Modifiers to count the number of characters of a value or the number of words.
* Covert to ASCII characters - Modifier to change the accented letters inside a text.
* URL encode text - Encode the field value with the purpose to pass it as an url parameter for dynamic population.

== Installation ==

Upload the plugin files to the `/wp-content/plugins/gravitywp-advanced-merge-tags` directory, or install the plugin through the WordPress plugins screen directly.

== Changelog ==
= 1.4.3 =
- Improved security by applying wp_kses_post on gwp_get_matched_entries_values output.
- Added support for textual separators in gwp_get_matched_entries_values output. New parameters: row_separator and col_separator.
- Added support for a no-result message in gwp_get_matched_entries_values output. New parameters: no_result.
- Fixed a bug in gwp_get_matched_entries_values where the row_tag parameter was used for the row class.

= 1.4.2 =
- Add the 'gwp_amt_replace_admin_field_variables' filter to allow conversion of field merge tags in administrative field's default value, for other field types than 'text'.

= 1.4.1 =
- Fix compatibility issue with GP Populate Anything Live Merge Tags, where nested merge tag modifier arguments are passed with html encoded quotes.

= 1.4 =
- Feature: Implemented support for regular GF modifiers after the advanced modifier. Example {DropdownSelect:1:gwp_substring:value start=1 length=2}.
- Feature: It is now possible to use {DropdownSelect:1:gwp_substring start=-3} in calculations. This will use the last 3 characters from a value like 'first_choice_1.4'.
- Feature: Added gwp_url merge tag.
- Performance improvements.

= 1.3 =
- Feature: Added gwp_generate_token merge tag.
- Feature: Added gwp_now merge tag.
- Feature: Added gwp_sum_matched_entries_values modifier, which allows to add up numeric values from a field for a large batch of entries.
- Feature: it is now possible to use {text:1:gwp_word_count} in calculations.
- Fix fatal error when gwp_date_created and gwp_date_updated merge tags are used before the entry was created.

= 1.2.4 =
- Update dependencies to fix a security issue in a third party library.

= 1.2.3 =
- Added support for use of the gwp_word_count merge tag modifier with tinymce/RTF textarea fields.
 
= 1.2.2 =
- Fix nested merge tags within gwp_append and gwp_replace modifiers not working properly.

= 1.2.1 =
- Improvement: gwp_urlencode modifier now supports checkboxes.

= 1.2 =
- Added gwp_substring modifier.
- Added gwp_date_format modifier. This deprecates the gwp_date_field merge tag.
- Added support for using nested merge tags within merge tags with search filters, like filter1=created_by operator1=is value1=*|user:ID|*.
- Search filters with invalid operators are now ignored.
- Added support for using nested merge tags within gwp_date-* merge tags and modifiers like modify='+*|number of weeks:2|* weeks'.
- Added support for using nested merge tags within gwp_append and gwp_replace modifiers like {Textarea:1:gwp_replace search='VARIABLE' replace='*|text:2|*'}.
- Added plugin setting to replace field merge tags like {field:1} in text fields with administrative visibility after an entry is submitted.
- Fix subfield values not working with advanced merge tags modifiers.
- Apply newline to <br> conversion when outputting to html context.
- Reworked the method for gwp_word_count modifier as str_word_count() does not work as expected in various cases. Words are now counted based on separator characters. By default:  Any whitespace character (spaces, tabs, line breaks).
- Added 'gravitywp_advancedmergetags_wordcount_regex' and 'gravitywp_advancedmergetags_wordcount_result' filters.
- Added required argument checks for gwp_datefield merge tag / modifier.
- Improved handling of missing empty arguments in gwp_get_matched_entries_values and gwp_datefield modifier.
- Security improvements.

= 1.1.1 = 
- Fix issue when using timezone argument.

= 1.1 = 
- Added support for Merge Tag modifiers with case sensitive arguments.
- New Merge Tag modifier: gwp_append - Append a string before or after a non-empty value.
- New Merge Tag modifier: gwp_replace - Search and replace a value before output.
- Fix some PHP notices.

= 1.0 = 
- All new.
