跳到内容

Gravity Forms Business Hours by GravityView

v2.1.3

Zack Katz · 2014年12月18日 上架

Add a Business Hours field to Gravity Forms.

正在使用
100+
评分
3.7 / 5
累计下载
7,669
最近更新
2019年4月24日
6 条评价需要 WordPress 3.3+已测试到 5.1.29

截图

Business Hours in the Gravity Forms View Entry screen
Business Hours in the Gravity Forms View Entry screen
The Business Hours field
The Business Hours field
The Business Hours button in the Form Editor
The Business Hours button in the Form Editor

This plugin requires Gravity Forms, the best form plugin for WordPress!

Add a Business Hours field to your Gravity Forms form.

This plugin supports:

  • Setting closing times after midnight
  • Multiple open times per day
  • Displaying when a business is currently open
  • Fully localized – works great in languages other than English
  • Edit existing values when editing an entry
  • Works with GravityView and the Gravity Forms Directory plugins

Note: this plugin is actively updated, but customer support is only available to GravityView license holders.

Available Filters

These filters are available for code writers to modify the output:

  • gravityforms_business_hours_output_template – Change template for open days. Modify the output of the open days. Data inside {{brackets}} will be replaced with the appropriate values.
  • gravityforms_business_hours_output_closed_template – Closed days template. Data inside {{brackets}} will be replaced with the appropriate values.
  • gravityforms_business_hours_open_label – “Open Now” label
  • gravityforms_business_hours_default_start_time – Default start time in H:i format (default: 09:00)
  • gravityforms_business_hours_default_end_time – Default end time in H:i format (default: 18:00)
  • gravityforms_business_hours_time_format – Modify the time format for the displayed value (default: g:i a)
  • gravityforms_business_hours_interval – Time interval for the time dropdown options (default: 30)
  • gravityforms_business_hours_day_format – Modify the date format for how the days appear, in PHP Date formatting.
  • gravityforms_business_hours_days – Array of day values used to display dropdowns and Hours output Only modify the day values. Don’t change the keys!

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums