AllaerdAdmin

The Woocommerce CSV Import Allaerd Admin class.

Defined (1)

The class is defined in the following location(s).

/import/classes/Admin.php  
  1. class Admin 
  2. public function __construct() 
  3. add_action('admin_menu', array($this, 'menu')); 
  4. add_action('admin_init', array ($this, 'register_importers')); 
  5.  
  6.  
  7. public function menu() 
  8.  
  9. add_menu_page('allaerd-container', 'Importer', 'manage_woocommerce', 'allaerd-container', array ($this, 'main'), null, '58.1505323321'); 
  10. add_submenu_page('allaerd-container', 'Importer', 'Importer', 'manage_woocommerce', 'allaerd-importer', array ($this, 'import')); 
  11.  
  12. public function main() 
  13. echo 'hi'; 
  14.  
  15. public function import() 
  16. echo 'importer'; 
  17.  
  18. public function register_importers() 
  19. register_importer('allaerd_import', 'Import everthing' , 'Import everything', array ($this, 'import')); 
  20.