https://github.com/dekodeinteraktiv/hogan-form
Gravity Forms Module for Hogan
https://github.com/dekodeinteraktiv/hogan-form
acf dekode-hogan hogan php wordpress-plugin
Last synced: 10 months ago
JSON representation
Gravity Forms Module for Hogan
- Host: GitHub
- URL: https://github.com/dekodeinteraktiv/hogan-form
- Owner: DekodeInteraktiv
- License: gpl-3.0
- Created: 2017-10-24T08:05:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-17T11:44:22.000Z (over 7 years ago)
- Last Synced: 2025-02-22T15:05:28.285Z (11 months ago)
- Topics: acf, dekode-hogan, hogan, php, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Forms Module for [Hogan](https://github.com/dekodeinteraktiv/hogan-core)
## Installation
Install the module using Composer `composer require dekodeinteraktiv/hogan-form` or simply by downloading this repository and placing it in `wp-content/plugins`
## Usage
Currently supports Gravity Forms, Contact Form 7, Ninja Forms and MailPoet Forms.
## Available filters
- `hogan/module/form/gravity_forms/options` for passing args to the Gravity Forms' render function.
```
//default values
$gs_defaults = [
'display_title' => true,
'display_description' => true,
'display_inactive' => false,
'field_values' => null,
'ajax' => false,
'tabindex' => 1,
];
```
Options returned from the filter will be merged with defaults using `wp_parse_args()`
```
add_filter('hogan/module/form/gravity_forms/options', function() {
return ['display_title' => false];
});
```