Exemple #1
0
 function __construct()
 {
     parent::__construct();
     // this is required
     // Actions
     add_action('admin_menu', array($this, 'menu'));
 }
Exemple #2
0
 function __construct()
 {
     parent::__construct();
     // this is required
     register_activation_hook(__FILE__, array($this, 'activate'));
 }