/**
  * Plugin constructor.
  *
  * @since   0.0.1
  * @access  public
  * @uses    plugin_basename
  * @action  rw_group_blog_init
  */
 public function __construct()
 {
     if (!function_exists('bp_register_group_extension')) {
         // @todo Hinweis da BuddyPress Activity aktiv sein muss.
         return false;
     }
     // set the textdomain variable
     self::$textdomain = self::get_textdomain();
     // The Plugins Name
     self::$plugin_name = $this->get_plugin_header('Name');
     // The Plugins Basename
     self::$plugin_base_name = plugin_basename(__FILE__);
     // The Plugins Version
     self::$plugin_version = $this->get_plugin_header('Version');
     // Load the textdomain
     $this->load_plugin_textdomain();
     // Add Filter & Actions
     add_action('plugins_loaded', array('RW_Group_Blogs', 'load_plugin_textdomain'));
     add_action('bp_init', array('RW_Group_Blogs_Core', 'init'));
     add_action('init', array('RW_Group_Blogs_Server_API', 'add_endpoint'));
     add_action('template_redirect', array('RW_Group_Blogs_Server_API', 'template_redirect'));
     add_filter('query_vars', array('RW_Group_Blogs_Server_API', 'add_query_vars'));
     add_filter('rw_group_blogs_server_cmd_parser', array('RW_Group_Blogs_Server_API', 'cmd_list_profiles'));
     add_filter('rw_group_blogs_server_cmd_parser', array('RW_Group_Blogs_Server_API', 'cmd_add_blog'));
     add_filter('rw_group_blogs_server_cmd_parser', array('RW_Group_Blogs_Server_API', 'cmd_add_activity'));
     do_action('rw_group_blogs_init');
 }