public function deactivate() {
		$this->clear_schedule();
		if ( !is_multisite() || wp_is_large_network() ) {
			return;
		}

		$sites = ( array ) get_site_option( $this->args[ 'name' ] . '_sites', array() );

		$sites and $sites = array_diff( $sites, [ get_current_blog_id() ] );

		foreach ( $sites as $site ) {
			switch_to_blog( $site );
			$this->clear_schedule();
		}
		restore_current_blog();

		delete_site_option( $this->args[ 'name' ] . '_sites' );
	}
public function deactivate() {
		$this->clear_schedule();
		if ( !is_multisite() || wp_is_large_network() ) {
			return;
		}

		$sites = ( array ) get_site_option( $this->args[ 'name' ] . '_sites', array() );

		$sites and $sites = array_diff( $sites, [ get_current_blog_id() ] );

		foreach ( $sites as $site ) {
			switch_to_blog( $site );
			$this->clear_schedule();
		}
		restore_current_blog();

		delete_site_option( $this->args[ 'name' ] . '_sites' );
	}
public function deactivate ( ) { $ this -> clear_schedule ( ) ; if ( ! is_multisite ( ) || wp_is_large_network ( ) ) { return ; } $ sites = ( array ) get_site_option ( $ this -> args [ 'name' ] . '_sites' , array ( ) ) ; $ sites and $ sites = array_diff ( $ sites , [ get_current_blog_id ( ) ] ) ; foreach ( $ sites as $ site ) { switch_to_blog ( $ site ) ; $ this -> clear_schedule ( ) ; } restore_current_blog ( ) ; delete_site_option ( $ this -> args [ 'name' ] . '_sites' ) ; }
Remove all the cron on deactivation

@return void
Remove all the cron on deactivation