dekodeinteraktiv/hogan-form

Hogan表单模块,需要Gravity Forms、Contact Form 7或Ninja Forms。

1.1.3 2018-08-17 11:44 UTC

This package is auto-updated.

Last update: 2024-09-12 18:55:19 UTC


README

安装

使用Composer安装模块 composer require dekodeinteraktiv/hogan-form 或直接下载此存储库并将其放置在 wp-content/plugins

使用方法

目前支持Gravity Forms、Contact Form 7、Ninja Forms和MailPoet Forms。

可用过滤器

  • hogan/module/form/gravity_forms/options 用于传递参数到Gravity Forms的渲染函数。
//default values
$gs_defaults = [
    'display_title'       => true,
    'display_description' => true,
    'display_inactive'    => false,
    'field_values'        => null,
    'ajax'                => false,
    'tabindex'            => 1,
];

过滤器返回的选项将使用 wp_parse_args() 与默认值合并

add_filter('hogan/module/form/gravity_forms/options', function() {
	return ['display_title' => false];
});