Skip to content
Zack Katz edited this page Jan 2, 2024 · 3 revisions

Table of Contents

gravityview/widget/recent-entries/before_widget

Before recent entries are displayed in the WordPress widget.

Name Type Description
args array Display arguments including before_title, after_title, before_widget, and after_widget.
instance array The settings for the particular instance of the widget.

gravityview/widget/recent-entries/after_widget

After recent entries are displayed in the WordPress widget.

Name Type Description
args array Display arguments including before_title, after_title, before_widget, and after_widget.
instance array The settings for the particular instance of the widget.

gravityview_recent_entries_widget_form

Displayed at the bottom of the Recent Entries widget admin form.

Name Type Description
this \GravityView_Recent_Entries_Widget WP_Widget object
instance array Current widget instance

gravityview/widgets/{$zone}/{$view->ID}/rendered

Prevent widgets from being called twice.

gravityview_include_backend_actions

Triggered after all GravityView admin files are loaded.

gv_duplicate_view

After a View is duplicated, perform an action.

Since: 1.6

See: \GravityView_Admin_Duplicate_View::copy_view_meta_info

Name Type Description
new_view_id int The ID of the newly created View
post \WP_Post The View that was just cloned

gravityview_remove_conflicts_after

Runs after no-conflict styles are removed. You can re-add styles here.

gravityview/metaboxes/before_render

Before rendering GravityView metaboxes.

Since: 1.8

Name Type Description
post \WP_Post

gravityview/metaboxes/after_render

After rendering GravityView metaboxes.

Since: 1.8

Name Type Description
post \WP_Post

gravityview/metaboxes/permissions_before

Render additional Permissions metabox settings

Since: 2.9

Name Type Description
current_settings array

gravityview/metaboxes/permissions_after

Render additional Permissions metabox settings, like Delete Entry (if available)

Since: 2.9

Name Type Description
current_settings array

gravityview/metaboxes/multiple_entries/after

Render additional Multiple Entries settings

Since: 2.9.4

Name Type Description
current_settings array Array of settings returned from {@see \gravityview_get_template_settings()}.

gravityview_metabox_sort_after

Since: 1.7

gravityview/metaboxes/delete_entry

Render Delete Entry metabox settings, if enabled

Since: 2.9.2

See: \GravityView_Delete_Entry_Admin::view_settings_metabox

Name Type Description
current_settings array

gravityview/metaboxes/edit_entry

Render Edit Entry metabox settings, if enabled

Since: 2.9

See: \GravityView_Edit_Entry_Admin::view_settings_metabox

Name Type Description
current_settings array

gravityview/metaboxes/data-source/before

Since: 1.22.1

Name Type Description
current_form int Form currently selected in the View (0 if none selected)
forms array Array of active forms, not in trash

gravityview/metaboxes/data-source/after

Since: 1.22.1

Name Type Description
current_form int Form currently selected in the View (0 if none selected)
forms array Array of active forms, not in trash

gravityview_clear_form_cache

Destroy the cache for this form

Since: 1.5.1

See: class-cache.php

gravityview/approve_entries/updated

Triggered when an entry approval is updated.

Since: 1.7.6.1

Name Type Description
entry_id int ID of the Gravity Forms entry
status string, int String whether entry is approved or not. See GravityView_Entry_Approval_Status for valid statuses.

gravityview/approve_entries/{$action}

Triggered when an entry approval is set. {$action} can be 'approved', 'unapproved', or 'disapproved'.

Since: 1.7.6.1

Name Type Description
entry_id int ID of the Gravity Forms entry

gravityview/delete-entry/deleted

Triggered when an entry is deleted.

Since: 1.16.4

Name Type Description
entry_id int ID of the Gravity Forms entry
entry array Deleted entry array

gravityview/delete-entry/trashed

Triggered when an entry is trashed.

Since: 1.16.4

Name Type Description
entry_id int ID of the Gravity Forms entry
entry array Deleted entry array

gravityview/duplicate-entry/duplicated

Triggered when an entry is duplicated.

Since: 2.5

Name Type Description
duplicated_entry array The duplicated entry
entry array The original entry

gform_post_send_entry_note

See: It's here for compatibility with Gravity Forms https://www.gravityhelp.com/documentation/article/10146-2/

gravityview/field/notes/scripts

Print scripts and styles required for the Notes field.

Since: 1.17

See: \GravityView_Field_Notes::enqueue_scripts

gravityview/field/notes/scripts

Print scripts and styles required for the Notes field.

Since: 1.17

See: \GravityView_Field_Notes::enqueue_scripts

gravityview/edit-entry/publishing-action/before

container.

Since: 1.5.1

Name Type Description
form array The Gravity Forms form
entry array The Gravity Forms entry
view_id int The current View ID

gravityview/edit-entry/publishing-action/after

container.

Since: 1.5.1

Name Type Description
form array The Gravity Forms form
entry array The Gravity Forms entry
view_id int The current View ID
post_id int The current Post ID

gravityview/edit_entry/before_update

Perform an action before the entry has been updated using Edit Entry.

Since: 2.1

Name Type Description
form array Gravity Forms form array
entry_id string Numeric ID of the entry that is being updated
this \GravityView_Edit_Entry_Render This object
gv_data \GravityView_View_Data The View data

gravityview/edit_entry/after_update

Perform an action after the entry has been updated using Edit Entry.

Since: 2.1

Name Type Description
form array Gravity Forms form array
entry_id string Numeric ID of the entry that was updated
this \GravityView_Edit_Entry_Render This object
gv_data \GravityView_View_Data The View data

gform_post_process_feed

Maybe process feeds.

Since: develop

gravityview/edit-entry/render/before

Before rendering the Edit Entry form.

Since: 1.17

Name Type Description
this \GravityView_Edit_Entry_Render

gravityview/edit-entry/render/after

After rendering the Edit Entry form.

Since: 1.17

Name Type Description
this \GravityView_Edit_Entry_Render

gravityview_view_saved

After a View has been saved in the admin.

Since: 1.17.2

Name Type Description
post_id int ID of the View that has been saved
statii array Array of statuses of the post meta saving processes. If saving worked, each key should be mapped to a value of the post ID (directory_widgets => 124). If failed (or didn't change), the value will be false.

gravityview_search_widget_fields_before

tag of the GravityView search form, before inputs are rendered.

Name Type Description
this \GravityView_Widget_Search GravityView Widget instance

gravityview_search_widget_field_before

Before each search input is rendered (other than the submit button).

Name Type Description
this \GravityView_Widget_Search GravityView Widget instance
array{key:string,label:string,value:string,type:string,choices:array} $search_field

gravityview_search_widget_field_after

After each search input is rendered (other than the submit button).

Name Type Description
this \GravityView_Widget_Search GravityView Widget instance
search_field array

gravityview_search_widget_fields_after

tag of the GravityView search form, after inputs are rendered.

Name Type Description
this \GravityView_Widget_Search GravityView Widget instance

gravityview/template/before

Prepend content to the view.

Name Type Description
gravityview \GV\Template_Context The $gravityview object available in templates.

gravityview_before

Deprecated: Use gravityview/template/before

gravityview_before

Prepend content to the View container <div>.

Deprecated: Use gravityview/template/before.

gravityview/template/header

Prepend content to the view container

.
Name Type Description
gravityview \GV\Template_Context The $gravityview object available in templates.

gravityview_header

Deprecated: Use gravityview/template/header

gravityview_header

Prepend content to the View container <div>.

Deprecated: Use gravityview/template/header.

gravityview/template/footer

Prepend outside of the view container

.
Name Type Description
gravityview \GV\Template_Context The $gravityview object available in templates.

gravityview_footer

Deprecated: Use gravityview/template/footer

gravityview_footer

Display content after a View. Used to render footer widget areas. Rendered outside the View container <div>.

Deprecated: Use gravityview/template/footer.

gravityview/template/after

Append content to the view.

Since: 2.0

Name Type Description
gravityview \GV\Template_Context The $gravityview object available in templates.

gravityview_after

Deprecated: Use gravityview/template/after

gravityview_after

Append content to the View container <div>.

Deprecated: Use gravityview/template/after

gravityview_log_debug

The default post_category field output template.

Since: 2.0

gravityview_log_debug

Backup!

gravityview/template/field/survey/rating/before

Since: 2.16

Name Type Description
field \GV\GF_Field The current field.
gravityview \GV\Template_Context The context.

gravityview_log_debug

The default post_content field output template.

Since: 2.0

gravityview/field/approval/load_scripts

Trigger loading the field approval javascript.

Since: 1.19

See: \GravityView_Field_Approval::enqueue_and_localize_script

Name Type Description
\GV\Template_Context The $gravityview field template context object.

gravityview/field/notes/scripts

Print scripts and styles required for the Notes field.

Since: 1.17

See: \GravityView_Field_Notes::enqueue_scripts

Name Type Description
gravityview \GV\Template_Context The context.

gravityview_log_error

The default quiz field output template.

Since: 2.0

gravityview_log_debug

The default post_title field output template.

Since: 2.0

{$plugin}/validation/{$setting['id']}"}

Runs when validation rules are not specified and before the setting is marked as validated.

Since: 1.0.0

Name Type Description
setting array Original setting.
value_to_validate string Value to validate.

gk/foundation/settings/initialized

Fires when the class has finished initializing.

Since: 1.0.0

Name Type Description
this

gk/foundation/licenses/initialized

Fires when the class has finished initializing.

Since: 1.0.0

Name Type Description
this

gk/foundation/rest/route/before

Fires before the REST API route is processed.

Since: 1.0.11

Name Type Description
route array

gk/foundation/rest/route/after

Fires after the REST API route is processed.

Since: 1.0.11

Name Type Description
route array

gk/foundation/ajax/before

Fires before the Ajax call is processed.

Since: 1.0.11

Name Type Description
router string
route string
payload array

gk/foundation/ajax/after

Fires after the Ajax call is processed.

Since: 1.0.11

Name Type Description
router string
route string
payload array
result mixed, \Exception

gk/foundation/translations/initialized

Fires when the class has finished initializing.

Since: 1.0.0

Name Type Description
this

gk/foundation/initialized

Fires when the class has finished initializing.

Since: 1.0.0

Name Type Description
this

{$action)}

Let's make this testable!

{$action)}

Let's make this testable!

gravityview/shortcode/before-processing

Runs before the GV shortcode is processed; can be used to load additional scripts/styles.

Since: 2.13.4

Name Type Description
view \GV\View GV View
post \WP_Post Associated WP post

gravityview/view/get

Override View.

Since: 2.1

Name Type Description
view \GV\View The View instance pointer.

gravityview/view/get

Override View.

Since: 2.1

Name Type Description
view \GV\View The View instance pointer.

gravityview/view/query

Override the \GF_Query before the get() call.

Name Type Description
query \GF_Query The current query object reference
this \GV\View The current view object
request \GV\Request The request object

gravityview/template/table/cells/before

while rendering each entry in the loop. Can be used to insert additional table cells.

Since: 2.0

Name Type Description
\GV\Template_Context The context.

gravityview_table_cells_before

while rendering each entry in the loop. Can be used to insert additional table cells.

Deprecated: Use gravityview/template/table/cells/before

gravityview/template/table/cells/after

while rendering each entry in the loop. Can be used to insert additional table cells.

Since: 2.0

Name Type Description
\GV\Template_Context The context.

gravityview_table_cells_after

while rendering each entry in the loop. Can be used to insert additional table cells.

Deprecated: Use gravityview/template/table/cells/after

gravityview/template/table/body/before

of the table.

Since: 2.0

Name Type Description
context \GV\Template_Context The template context.

gravityview_table_body_before

Inside the tbody, before any rows are rendered. Can be used to insert additional rows.

Deprecated: Use gravityview/template/table/body/before

gravityview/template/table/body/after

of the table at the end.

Since: 2.0

Name Type Description
context \GV\Template_Context The template context.

gravityview_table_body_after

Inside the tbody, after any rows are rendered. Can be used to insert additional rows.

Deprecated: Use gravityview/template/table/body/after

gravityview/template/table/tr/before

of the table when there are no results.

Since: 2.0

Name Type Description
context \GV\Template_Context The template context.

gravityview_table_tr_before

while rendering each entry in the loop. Can be used to insert additional table rows.

Deprecated: USe gravityview/template/table/tr/before

gravityview/template/table/tr/after

of the table when there are no results.

Since: 2.0

Name Type Description
context \GV\Template_Context The template context.

gravityview_table_tr_after

while rendering each entry in the loop. Can be used to insert additional table cells.

Deprecated: USe gravityview/template/table/tr/after

gravityview_include_frontend_actions

Deprecated: Use gravityview/loaded along with \GV\Request::is_admin(), etc.
Nice place to insert extensions' frontend stuff

gravityview_render_entry_{$view->ID}

Before rendering a single entry for a specific View ID.

Since: 1.17

Name Type Description
entry \GV\Entry The entry about to be rendered
view \GV\View The connected view
request \GV\Request The associated request

gravityview/template/list/body/before

of the list.

Since: 2.0

Name Type Description
context \GV\Template_Context The template context.

gravityview_list_body_before

Inside the tbody, before any rows are rendered. Can be used to insert additional rows.

Deprecated: Use gravityview/template/list/body/before

gravityview/template/list/body/after

of the list at the end.

Since: 2.0

Name Type Description
context \GV\Template_Context The template context.

gravityview_list_body_after

Inside the tbody, after any rows are rendered. Can be used to insert additional rows.

Deprecated: Use gravityview/template/list/body/after

{$zone)}

of the list at the end.

Since: 2.0

Name Type Description
context \GV\Template_Context The template context.

{$zone)}

Inside the entry, before any rows are rendered. Can be used to insert additional rows.

Deprecated: Use gravityview/template/list/entry/$zone/before

{$zone)}

of the list at the end.

Since: 2.0

Name Type Description
context \GV\Template_Context The template context.

{$zone)}

Inside the entry, after any rows are rendered. Can be used to insert additional rows.

Deprecated: Use gravityview/template/list/entry/after

gravityview/loaded

The core has been loaded.

gravityview/template/view/render

Before rendering.

Since: 2.0

Name Type Description
template \GV\View_Template The current template.

gravityview_log_debug

View has been set already.

gravityview_log_debug

Doesn't have a connected form.

gravityview_log_debug

Kick off all advanced filters.

Clone this wiki locally