/**
  * Adds the actions anf filter hooks for plugin functioning
  * @access protected
  * @since 0.1.0
  */
 protected function actions()
 {
     //Adding page builder help tab
     add_action('load-page.php', array($this, 'add_help_tab'), 12);
     add_action('load-post-new.php', array($this, 'add_help_tab'), 12);
     //Save panel data on post save
     add_action('save_post', array($this, 'save_post'), 10, 2);
     // Post actions
     add_action('page_row_actions', array($this, 'post_row_actions'), 10, 2);
     add_action('post_row_actions', array($this, 'post_row_actions'), 10, 2);
     //Allow the save post to save panels data
     add_filter('pootlepb_save_post_pass', array($this, 'save_post_or_not'), 10, 2);
     add_filter('wp_insert_post_empty_content', array($this, 'is_pb_post_empty'), 25, 2);
     //Settings
     add_action('admin_menu', array($this, 'admin_menu'));
     add_action('admin_init', array($this, 'init'));
     ppb_fs()->add_filter('connect_message', array($this, 'fs_message'), 10, 6);
 }
 /**
  * Include the required files
  * @since 0.1.0
  */
 private function includes()
 {
     /** Variables used throughout the plugin */
     require_once POOTLEPB_DIR . 'inc/vars.php';
     /** Functions used throughout the plugin */
     require_once POOTLEPB_DIR . 'inc/funcs.php';
     /** Enhancements and fixes */
     require_once POOTLEPB_DIR . 'inc/enhancements-and-fixes.php';
     /** PPB Admin Class */
     require_once POOTLEPB_DIR . 'inc/class-admin.php';
     /** @var Pootle_Page_Builder_Admin PPB Admin Class Instance */
     $this->admin = $GLOBALS['Pootle_Page_Builder_Admin'] = new Pootle_Page_Builder_Admin();
     /** PPB Public Class */
     require_once POOTLEPB_DIR . 'inc/class-public.php';
     /** @var Pootle_Page_Builder_Public PPB Public Class Instance */
     $this->public = $GLOBALS['Pootle_Page_Builder_Public'] = new Pootle_Page_Builder_Public();
     if (ppb_fs()->is__premium_only()) {
         if (ppb_fs()->is_plan('ppbpro')) {
             /** PPB Public Class */
             require_once POOTLEPB_DIR . 'ppbpro/ppbpro.php';
         }
     }
     /** PPB Live Editor */
     require_once POOTLEPB_DIR . 'inc/class-live-editor.php';
     /** Intantiating main plugin class */
     Pootle_Page_Builder_Live_Editor::instance(__FILE__);
 }