GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
class-gravityview-plugin-hooks-elegant-themes.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Add Elegant Themes compatibility to GravityView (Divi theme)
4  *
5  * @file class-gravityview-theme-hooks-elegant-themes.php
6  * @package GravityView
7  * @license GPL2+
8  * @author Katz Web Services, Inc.
9  * @link http://gravityview.co
10  * @copyright Copyright 2016', Katz Web Services, Inc.
11  *
12  * @since 1.17.2
13  */
14 
15 /**
16  * @inheritDoc
17  * @since 1.17.2
18  */
20 
21  /**
22  * @inheritDoc
23  * @since 1.17.2
24  */
25  protected $function_name = 'et_setup_theme';
26 
27  function add_hooks() {
28  parent::add_hooks();
29 
30  add_action( 'admin_init', array( $this, 'add_hooks_admin_init' ), 1 );
31  }
32 
33  /**
34  * Prevent Divi from adding their stuff to GV pages
35  */
36  public function add_hooks_admin_init() {
38  // Prevent Divi from adding import/export modal dialog
39  remove_action( 'admin_init', 'et_pb_register_builder_portabilities' );
40 
41  // Divi theme adds their quicktag shortcode buttons on a View CPT. This causes JS errors.
42  remove_action( 'admin_head', 'et_add_simple_buttons' );
43  }
44  }
45 }
46 
add_hooks_admin_init()
Prevent Divi from adding their stuff to GV pages.
Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles...
static is_admin_page($hook= '', $page=NULL)
Is the current admin page a GravityView-related page?