Esempio n. 1
0
 public function __construct()
 {
     // Setup Abstract hooks
     parent::__construct();
     add_action('wp_ajax_tribe_aggregator_preview_import', array($this, 'ajax_preview_import'));
     add_action('tribe_aggregator_page_request', array($this, 'handle_submit'));
 }
Esempio n. 2
0
 public function __construct()
 {
     // Setup Abstract hooks
     parent::__construct();
     // Handle Screen Options
     add_action('current_screen', array($this, 'action_screen_options'));
     add_filter('set-screen-option', array($this, 'filter_save_screen_options'), 10, 3);
 }
 public function __construct()
 {
     // Setup Abstract hooks
     parent::__construct();
     // Handle Requests to the Tab
     add_action('tribe_aggregator_page_request', array($this, 'handle_request'));
     // Handle Screen Options
     add_action('current_screen', array($this, 'action_screen_options'));
     add_filter('set-screen-option', array($this, 'filter_save_screen_options'), 10, 3);
 }
Esempio n. 4
0
 public function __construct()
 {
     // Setup Abstract hooks
     parent::__construct();
     // Configure this tab ajax calls
     add_action('wp_ajax_tribe_aggregator_dropdown_origins', array($this, 'ajax_origins'));
     add_action('wp_ajax_tribe_aggregator_save_credentials', array($this, 'ajax_save_credentials'));
     add_action('wp_ajax_tribe_aggregator_create_import', array($this, 'ajax_create_import'));
     add_action('wp_ajax_tribe_aggregator_fetch_import', array($this, 'ajax_fetch_import'));
     // We need to enqueue Media scripts like this
     add_action('admin_enqueue_scripts', array($this, 'enqueue_media'));
     add_action('tribe_aggregator_page_request', array($this, 'handle_submit'));
     add_action('tribe_aggregator_page_request', array($this, 'handle_facebook_credentials'));
     // hooked at priority 9 to ensure that notices are injected before notices get hooked in Tribe__Admin__Notices
     add_action('current_screen', array($this, 'maybe_display_notices'), 9);
 }