2017 © Pedro Peláez
 

wordpress-plugin acf-gravityforms-add-on

Advanced Custom Fields: Gravityforms Add-on

image

dannyvanholten/acf-gravityforms-add-on

Advanced Custom Fields: Gravityforms Add-on

  • Tuesday, March 27, 2018
  • by DannyvanHolten
  • Repository
  • 4 Watchers
  • 30 Stars
  • 1,032 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 10 Open issues
  • 12 Versions
  • 21 % Grown

The README.md

Advanced Custom Fields Gravity Forms Add-on

Provides an Advanced Custom Field which allows a WordPress editorial user or administrator to select a Gravity Form as part of a field group configuration., (*1)

Getting started

The plugin is primarily available from the WordPress plugin repository. It allows you to choose a Gravity Form in WordPress Admin and use the selected form ID in your Theme or Plugin to output the form., (*2)

This plugin does not have any effect on the output of the website. It adds a custom ACF field type for use in an ACF field group., (*3)

Installation and usage

  1. Upload the plugin files to the /wp-content/plugins/acf-gravityforms-add-on directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Add a new field of type 'Forms' to the required ACF field group.

You can also install Advanced Custom Fields: Gravity Forms Add-on using Composer., (*4)

composer require dannyvanholten/acf-gravityforms-add-on, (*5)

…or if you make use of WPackagist, …, (*6)

composer require wpackagist-plugin/acf-gravityforms-add-on, (*7)

Using Advanced Custom Fields: Gravity Forms Add-on

To use the the field you just need to know how Advanced Custom Fields work. You can check out their documentation., (*8)

The Gravity Forms Add-on returns either an single form object / ID or an array of objects / IDs. Now we know that we can easily use it to build our fields :), (*9)

Output of the form in the frontend

This plugin doesn't integrate any code to the frontend of the website. You will need to ensure that your own Plugin or Theme handles the output of the form. An example of how do do this is detailed in this blog post on the Gravity Forms website., (*10)

Getting the form ID

Please refer to the documentation for the ACF method get_field for full details of how to use it., (*11)

If you return an ID from your ACF field configuration:, (*12)

$form_id = get_field('my-form');
gravity_form($form_id);

If you return an object/array from your ACF field configuration:, (*13)

$form = get_field('my-form');
gravity_form($form['id']);

If you return multiple Form IDs from your ACF field configuration:, (*14)

$form_ids = get_field('my-form');

foreach($form_ids as $form_id) {
    gravity_form($form_id);
}

Filtering the field HTML

Version 1.3.4 added a plain HTML filter to the output of the field. This filter is not applied to fields in ACF version 4., (*15)

apply_filters('acf-gravityforms-add-on/field_html', string $field_html, array $field, string $field_options, string $multiple)

Getting involved

Want to get involved and improve Advanced Custom Fields: Gravity Forms Add-on? Fork this repo and whenever you have something just make a pull request. After review we might add it to our GitHub Repository., (*16)

Credits

This plugin is maintained by Say Hello GmbH, a specialist WordPress agency in Spiez, Switzerland., (*17)

The plugin was initially developed by Danny van Holten based on work by @stormuk, (@lgladdy and @adampope)., (*18)

The Versions

27/03 2018

dev-master

9999999-dev

Advanced Custom Fields: Gravityforms Add-on

  Sources   Download

GPL-3.0+

The Requires

 

27/03 2018

dev-gfformsmodel-fix

dev-gfformsmodel-fix

Advanced Custom Fields: Gravityforms Add-on

  Sources   Download

GPL-3.0+

The Requires

 

04/10 2017

1.2.1

1.2.1.0

Advanced Custom Fields: Gravityforms Add-on

  Sources   Download

GPL-3.0+

The Requires

 

04/10 2017

dev-develop

dev-develop

Advanced Custom Fields: Gravityforms Add-on

  Sources   Download

GPL-3.0+

The Requires

 

29/05 2017

1.2

1.2.0.0

Advanced Custom Fields: Gravityforms Add-on

  Sources   Download

GPL-3.0+

The Requires

 

15/04 2017

1.1.1

1.1.1.0

Advanced Custom Fields: Gravityforms Add-on

  Sources   Download

GPL-3.0+

The Requires

 

12/04 2017

1.1

1.1.0.0

Advanced Custom Fields: Gravityforms Add-on

  Sources   Download

GPL-3.0+

The Requires

 

12/04 2017

1.0.1

1.0.1.0

Advanced Custom Fields: Gravityforms Add-on

  Sources   Download

GPL-3.0+

The Requires

 

07/04 2017

1.0

1.0.0.0

Advanced Custom Fields: Gravityforms Add-on

  Sources   Download

GPL-3.0+

The Requires

 

07/04 2017

0.9

0.9.0.0

Advanced Custom Fields: Gravityforms Add-on

  Sources   Download

GPL-3.0+

The Requires

 

07/04 2017

0.2

0.2.0.0

Advanced Custom Fields: Gravityforms Add-on

  Sources   Download

GPL-3.0+

The Requires

 

04/04 2017

0.1

0.1.0.0

Advanced Custom Field to select one or many Gravity Forms

  Sources   Download

GPL-3.0+

The Requires