Changeset 4030
- Timestamp:
- 09/11/2016 03:24:36 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-locale-main.php
r4028 r4030 2 2 namespace WordPressdotorg\Rosetta\Site; 3 3 4 use WordPressdotorg\Rosetta\User; 4 5 use WP_Site; 5 6 … … 39 40 */ 40 41 public function register_events() { 41 // TODO: Implement register_events() method. 42 if ( is_admin() ) { 43 $user_sync = new User\Sync(); 44 $user_sync->set_destination_site( get_site_by_path( get_site()->domain, Locale_Team::$path ) ); 45 $user_sync->set_roles_to_sync( [ 'editor' ] ); 46 $user_sync->setup(); 47 } 42 48 } 43 49 }
Note: See TracChangeset
for help on using the changeset viewer.