GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
includes
plugin-and-theme-hooks
class-gravityview-plugin-hooks-gravity-forms-polls.php
Go to the documentation of this file.
1
<?php
2
/**
3
* Customization for the Gravity Forms Polls Addon
4
*
5
* @file class-gravityview-plugin-hooks-gravity-forms-polls.php
6
* @package GravityView
7
* @license GPL2
8
* @author GravityKit <
[email protected]
>
9
* @link https://www.gravitykit.com
10
* @copyright Copyright 2022, Katz Web Services, Inc.
11
*
12
* @since 2.16
13
*/
14
15
/**
16
* @inheritDoc
17
* @since 2.16
18
*/
19
class
GravityView_Plugin_Hooks_Gravity_Forms_Polls
extends
GravityView_Plugin_and_Theme_Hooks
{
20
21
/**
22
* @type string Optional. Constant that should be defined by plugin or theme. Used to check whether plugin is active.
23
* @since 2.16
24
*/
25
protected
$constant_name
=
'GF_POLLS_VERSION'
;
26
27
protected
function
add_hooks
() {
28
29
/**
30
* These hooks to clear the cache were only being called on admin_init, so the cache was not being cleared
31
* when using Edit Entry on the frontend.
32
*/
33
add_action(
'gform_after_update_entry'
, array( GFPolls::get_instance(),
'entry_updated'
), 10, 2 );
34
add_action(
'gform_update_status'
, array( GFPolls::get_instance(),
'update_entry_status'
), 10, 2 );
35
}
36
}
37
38
new
GravityView_Plugin_Hooks_Gravity_Forms_Polls
;
GravityView_Plugin_Hooks_Gravity_Forms_Polls
Definition:
class-gravityview-plugin-hooks-gravity-forms-polls.php:19
GravityView_Plugin_Hooks_Gravity_Forms_Polls\$constant_name
$constant_name
string Optional.
Definition:
class-gravityview-plugin-hooks-gravity-forms-polls.php:25
GravityView_Plugin_Hooks_Gravity_Forms_Polls
new GravityView_Plugin_Hooks_Gravity_Forms_Polls
Definition:
class-gravityview-plugin-hooks-gravity-forms-polls.php:38
GravityView_Plugin_and_Theme_Hooks
Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles...
Definition:
abstract-gravityview-plugin-and-theme-hooks.php:22
GravityView_Plugin_Hooks_Gravity_Forms_Polls\add_hooks
add_hooks()
Definition:
class-gravityview-plugin-hooks-gravity-forms-polls.php:27