Example #1
0
 public function setup_actions()
 {
     parent::setup_actions();
     $this->main_site_id = gPluginWPHelper::getCurrentSiteBlogID();
     // WORKING : add settings
     // allow only one session per user
     // add_action( 'wp_login', 'wp_destroy_other_sessions' );
 }
Example #2
0
 public function setup_actions()
 {
     add_action('user_register', array($this, 'user_register'));
     if (!is_multisite()) {
         return;
     }
     // add_filter( 'sanitize_user', array( $this, 'sanitize_username' ), 12, 3 );
     // add_filter( 'wpmu_validate_user_signup', array( $this, 'wpmu_validate_user_signup_email' ), 12, 1 );
     parent::setup_actions();
 }