/**
  * Prevent Divi from adding their stuff to GV pages
  */
 public function add_hooks_admin_init()
 {
     if (GravityView_Admin::is_admin_page()) {
         // Prevent Divi from adding import/export modal dialog
         remove_action('admin_init', 'et_pb_register_builder_portabilities');
         // Divi theme adds their quicktag shortcode buttons on a View CPT. This causes JS errors.
         remove_action('admin_head', 'et_add_simple_buttons');
     }
 }
Exemple #2
0
function gravityview_is_admin_page($hook = '', $page = NULL)
{
    return GravityView_Admin::is_admin_page($hook, $page);
}