/**
  * Initialize the admin-side functions.
  *
  * @since  1.0.0
  */
 public function admin_init()
 {
     $hook = MS_Controller_Plugin::admin_page_hook('billing');
     $this->run_action('load-' . $hook, 'admin_billing_manager');
     $this->run_action('admin_print_scripts-' . $hook, 'enqueue_scripts');
     $this->run_action('admin_print_styles-' . $hook, 'enqueue_styles');
 }
 /**
  * Initialize the admin-side functions.
  *
  * @since  1.0.0
  */
 public function admin_init()
 {
     $hook = MS_Controller_Plugin::admin_page_hook('protection');
     $this->run_action('load-' . $hook, 'admin_page_process');
     $this->run_action('admin_print_scripts-' . $hook, 'enqueue_scripts');
     $this->run_action('admin_print_styles-' . $hook, 'enqueue_styles');
 }
 /**
  * Initialize the admin-side functions.
  *
  * @since  1.0.0
  */
 public function admin_init()
 {
     $hook = MS_Controller_Plugin::admin_page_hook('help');
     $this->run_action('admin_print_scripts-' . $hook, 'enqueue_scripts');
 }
 /**
  * Initialize the admin-side functions.
  *
  * @since  1.0.0
  */
 public function admin_init()
 {
     $hooks = array(MS_Controller_Plugin::admin_page_hook(), MS_Controller_Plugin::admin_page_hook('setup'));
     foreach ($hooks as $hook) {
         $this->run_action('load-' . $hook, 'process_admin_page');
         $this->run_action('admin_print_scripts-' . $hook, 'enqueue_scripts');
         $this->run_action('admin_print_styles-' . $hook, 'enqueue_styles');
         if (self::TAB_EMAILS == $this->get_active_edit_tab()) {
             $this->run_action('admin_head-' . $hook, array('MS_Controller_Communication', 'add_mce_buttons'));
         }
     }
 }
예제 #5
0
 /**
  * Initialize the admin-side functions.
  *
  * @since  1.0.0
  */
 public function admin_init()
 {
     $hooks = array('list' => MS_Controller_Plugin::admin_page_hook('members'), 'editor' => MS_Controller_Plugin::admin_page_hook('add-member'));
     foreach ($hooks as $key => $hook) {
         $this->run_action('load-' . $hook, 'members_admin_page_process_' . $key);
         $this->run_action('admin_print_scripts-' . $hook, 'enqueue_scripts_' . $key);
         $this->run_action('admin_print_styles-' . $hook, 'enqueue_styles');
     }
 }