=== Gravity Flow Parent-Child Extension ===
Contributors: stevehenty
Tags: gravity forms, approvals, workflow
Requires at least: 5.0
Tested up to: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Create parent-child relationships between forms in Gravity Flow.

== Description ==

The Gravity Flow Parent-Child Extension is an extension for Gravity Flow.

Gravity Flow is a commercial Add-On for [Gravity Forms](https://gravityflow.io/out/gravityforms)

Facebook: [Gravity Flow](https://www.facebook.com/gravityflow.io)

= Requirements =

1. [Purchase and install Gravity Forms](https://gravityflow.io/out/gravityforms)
1. [Purchase and install Gravity Flow](https://gravityflow.io)
1. Wordpress 4.3+
1. The latest version of Gravity Forms
1. The latest version of Gravity Flow


= Support =
If you find any that needs fixing, or if you have any ideas for improvements, please get in touch:
https://gravityflow.io/contact/


== Installation ==

1.  Download the zipped file.
1.  Extract and upload the contents of the folder to /wp-contents/plugins/ folder
1.  Go to the Plugin management page of WordPress admin section and enable the 'Gravity Flow Parent-Child Extension' plugin.

== Frequently Asked Questions ==

= Which license of Gravity Flow do I need? =
The Gravity Flow Parent-Child Extension will work with any license of [Gravity Flow](https://gravityflow.io).


== ChangeLog ==

= 1.6.0 = 2024-08-21
- Fixed an issue where adding a child entry can fail when using Gravity Forms 2.9 by ensuring configs are output when viewing the child form.
- Fixed PHP warnings that can occur when adding a child form.
- Fixed the PHP 8.1 deprecation notice for trim() that occurs when the add-on is activated on a new site.


= 1.5 = | 2022-03-20
- Added uninstall message on Gravity Forms Uninstall Page to clarify what is removed when Parent Child extension is uninstalled.
- Added add-on icon.
- Fixed a permissions issue which prevents the creation of child entries.


= 1.4 =
- Fixed an issue where the child form doesn't complete the submission on Gravity Forms 2.5.


= 1.3 =
- Added child form ID as a class to the sidebar postbox div. This can help in CSS/JS customizations and show/hide the boxes by form.

= 1.2.1 =
- Added security enhancements.

= 1.2 =
- Added support for the license key constant GRAVITY_FLOW_PARENT_CHILD_LICENSE_KEY.


= 1.1 =
- Added the Form ID to the entry meta labels.
- Added the gravityflowparentchild_child_entry_url filter to allow the child entry URL to be modified.
- Added the gravityflowparentchild_form_settings capability.
- Added the gravityflowparentchild_add_child_entry_link filter.
    Example:
    add_filter( 'gravityflowparentchild_add_child_entry_link', 'sh_filter_gravityflowparentchild_add_child_entry_link', 10, 5 );
    function sh_filter_gravityflowparentchild_new_entry_link( $form_link, $form_url, $parent_form_id, $child_form_id, $parent_entry_id ) {
        $form_url = site_url() . '/new-child-entry-form/?workflow_parent_entry_id=' . $parent_entry_id;
        $form_url = esc_url( $form_url );
        $form_link = sprintf( '<a href="%s">New Evaluation</a>', $form_url );
        return $form_link;
    }
- Added the gravityflowparentchild_view_all capability to control who can see the child entries.
- Fixed an issue with the capabilities required to view the parent and child entry metaboxes.
- Updated Members 2.0 integration to use human readable labels for the capabilities. Requires Gravity Flow 1.8.1 or greater.

= 1.0.0 =
All new!
