{ if (is_multisite() && $network_wide) { $ms_sites = wp_get_sites(); if (0 < sizeof($ms_sites)) { foreach ($ms_sites as $ms_site) { switch_to_blog($ms_site['blog_id']); $this->plugin_deactivated(); restore_current_blog(); } } } else { $this->plugin_deactivated(); } } /** * Perform plugin deactivation tasks * * @since 1.0.0 * * @access private * @return void */ private function plugin_deactivated() { } } /** * Init WP-Sweep */ WPSweep::get_instance();
<td> <strong><?php _e('Transient Options', 'wp-sweep'); ?> </strong> <p class="sweep-details" style="display: none;"></p> </td> <td> <span class="sweep-count"><?php echo number_format_i18n($transient_options); ?> </span> </td> <td> <span class="sweep-percentage"><?php echo WPSweep::get_instance()->format_percentage($transient_options, $total_options); ?> </span> </td> <td> <?php if (!empty($transient_options)) { ?> <button data-action="sweep" data-sweep_name="transient_options" data-sweep_type="options" data-nonce="<?php echo wp_create_nonce('wp_sweep_transient_options'); ?> " class="button button-primary btn-sweep"><?php _e('Sweep', 'wp-sweep'); ?> </button> <button data-action="sweep_details" data-sweep_name="transient_options" data-sweep_type="options" data-nonce="<?php