AP_Activate::network_activate()
Description #
Network activate.
Source #
File: activate.php
public function network_activate() { global $wpdb; // Get all blogs in the network and activate plugin on each one. $blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" ); // phpcs:disable WordPress.DB.DirectDatabaseQuery foreach ( (array) $blog_ids as $blog_id ) { switch_to_blog( $blog_id ); // @codingStandardsIgnoreLine $this->activate(); restore_current_blog(); } }
Expand full source code Collapse full source code View on GitHub: activate.php:352
Add your comment