示例#1
0
 function __construct()
 {
     parent::__construct(__FILE__);
     $options = $this->getBgramOptions();
     $this->bgramSetVisitorCookie();
     //Register plugin text domain for translations files
     load_plugin_textdomain('blockgram', false, dirname(plugin_basename(__FILE__)) . '/languages/');
     //Add plugin menu
     add_action('admin_menu', array(&$this, 'bgramMenu'));
     //Shortcode register
     add_shortcode('blockgram', array(&$this, 'bgramShortcode'));
 }
 function __construct()
 {
     parent::__construct(__FILE__);
 }