activate_{$plugin}, $network_wide
activate_{$plugin}, $network_wide
Appears in: 7.0.3
Hook Type: action
Displaying hooks found in version: 7.0.3do_action('activate_{$plugin}, $network_wide') is found 1 times:
- /wp-admin/includes/plugin.php line 703
* * @param bool $network_wide Whether to enable the plugin for all sites in the network * or just the current site. Multisite only. Default false. */ do_action( "activate_{$plugin}", $network_wide ); } if ( $network_wide ) { $current = get_site_option( 'active_sitewide_plugins', array() ); $current[ $plugin ] = time(); update_site_option( 'active_sitewide_plugins', $current );