/**
  * Adds the hooks for the admin dashboard actions
  * @since 2.0
  */
 public function __construct()
 {
     parent::__construct();
     add_action('plugins_loaded', array($this, 'wpsqt_init_menus'));
     add_action('wpsqt_page_files', array($this, "enqueue_files_admin"));
     add_action('admin_init', array($this, "adminFilter"));
     add_action('admin_head-media-upload.php', array($this, 'print_scripts_media_up'), 11);
     add_action('admin_notices', array($this, 'admin_notices'));
 }
Beispiel #2
0
 /**
  * Adds the hooks for the admin dashboard actions
  * @since 2.0
  */
 public function __construct()
 {
     parent::__construct();
     add_action('plugins_loaded', array($this, 'wpsqt_init_menus'));
     // Scripts cannot be enqueued when the wpsqt_page_files hook is run on
     // pre 3.2.2, so fallback to standard enqueuing procedure
     global $wp_version;
     if (version_compare($wp_version, '3.2.1', '>')) {
         add_action('wpsqt_page_files', array($this, "enqueue_files_admin"));
     } else {
         add_action('admin_init', array($this, "enqueue_files_admin"));
     }
     add_action('admin_init', array($this, "adminFilter"));
     add_action('admin_head-media-upload.php', array($this, 'print_scripts_media_up'), 11);
     add_action('admin_notices', array($this, 'admin_notices'));
     add_action('admin_init', array($this, 'download_csv'));
 }