GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
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  */
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 
Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles...