public function __construct($baseDir)
 {
     parent::__construct($baseDir);
     add_filter('post_row_actions', array($this, 'changeRowActions'), 10, 2);
     add_action('admin_menu', array($this, 'disableNewPost'));
     add_action('admin_menu', array($this, 'changeMenuLabels'));
     add_action('init', array($this, 'customPostStatus'));
     add_action('admin_footer-post.php', array($this, 'appendPostStatusList'));
     add_action('admin_footer-edit.php', array($this, 'appendCustomBulkActions'));
     add_filter('display_post_states', array($this, 'displayUnreadState'));
     add_filter('bulk_actions-edit-form-entries', array($this, 'changeBulkActions'));
     add_action('load-post.php', array($this, 'customActions'));
     add_action('load-edit.php', array($this, 'customBulkActions'));
     add_action('admin_notices', array($this, 'customAdminNotices'));
     add_filter('views_edit-form-entries', array($this, 'changeViews'));
     add_action('admin_menu', array($this, 'appendViewPage'));
     add_filter('manage_form-entries_posts_columns', array($this, 'entrieColumns'));
     add_filter('manage_form-entries_posts_custom_column', array($this, 'fillEntrieColumns'));
     add_filter('manage_edit-form-entries_sortable_columns', array($this, 'addSortableColumns'));
     add_action('pre_get_posts', array($this, 'manageEntriesPreGetPosts'));
     add_action('trashed_post', array($this, 'redirectAfterTrashing'), 10);
     add_filter('get_edit_post_link', array($this, 'getEditPostLink'), 10, 3);
     add_action('admin_init', array($this, 'markRead'));
     add_action('plugins_loaded', array($this, 'downloadCsv'));
     add_filter('parent_file', array($this, 'currentMenu'));
     add_action('admin_bar_menu', array($this, 'adminBarMenu'), 999, 1);
 }
 public function __construct($id)
 {
     parent::__construct(SCFP()->getBaseDir());
     $this->id = $id;
     $this->session = Agp_Session::instance();
     $this->captcha = new SimpleCaptcha();
     $this->captcha->resourcesPath = SCFP()->getBaseDir() . "/inc/cool-php-captcha/resources";
     $this->captcha->session_var = 'captcha-' . $this->id;
     $this->captcha->imageFormat = 'png';
     $this->captcha->scale = 3;
     $this->captcha->blur = true;
     $this->recaptcha = new SCFP_Recaptcha();
 }
 public function __construct()
 {
     parent::__construct(dirname(dirname(__FILE__)));
     include_once $this->getBaseDir() . '/types/form-entries-post-type.php';
     include_once $this->getBaseDir() . '/inc/cool-php-captcha/captcha.php';
     include_once $this->getBaseDir() . '/vendor/autoload.php';
     $this->lessParser = new Less_Parser();
     $this->settings = SCFP_Settings::instance($this);
     $this->formSettings = SCFP_FormSettings::instance();
     $this->formEntries = SCFP_FormEntries::instance();
     $this->session = Agp_Session::instance();
     $this->ajax = SCFP_Ajax::instance();
     add_action('init', array($this, 'init'));
     add_action('wp_enqueue_scripts', array($this, 'enqueueScripts'));
     add_action('admin_enqueue_scripts', array($this, 'enqueueAdminScripts'));
     add_shortcode('scfp', array($this, 'doScfpShortcode'));
     add_shortcode('wcp_contactform', array($this, 'doScfpShortcode'));
     add_action('widgets_init', array($this, 'initWidgets'));
     add_action('admin_init', array($this, 'tinyMCEButtons'));
     add_filter('clean_url', array($this, 'deferJavascripts'), 11, 1);
 }