Changeset 4096 for sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-global-wordpress-org.php
- Timestamp:
- 09/19/2016 09:18:57 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-global-wordpress-org.php
r4028 r4096 2 2 namespace WordPressdotorg\Rosetta\Site; 3 3 4 use WordPressdotorg\Rosetta\Jetpack; 4 5 use WP_Site; 5 6 … … 39 40 */ 40 41 public function register_events() { 41 // TODO: Implement register_events() method. 42 $jetpack_connector = new Jetpack\Connector(); 43 add_action( 'wpmu_new_blog', [ $jetpack_connector, 'schedule_connect_event' ], 20, 1 ); 44 add_action( $jetpack_connector->get_connect_event_name(), [ $jetpack_connector, 'connect_site' ] ); 42 45 } 43 46 }
Note: See TracChangeset
for help on using the changeset viewer.