# wp-print/2.56/uninstall.php

WP-Print, version 2.56. 23 lines.

- Page: https://pluginprobe.com/plugins/wp-print/2.56/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/wp-print/2.56/raw/uninstall.php
- Modified: 2014-09-05T02:43:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-print/2.56/code/uninstall.php#L10-L20`.

```php
<?php
/*
 * Uninstall plugin
 */
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
	exit ();

$option_name = 'print_options';

if ( is_multisite() ) {
	$ms_sites = wp_get_sites();

	if( 0 < sizeof( $ms_sites ) ) {
		foreach ( $ms_sites as $ms_site ) {
			switch_to_blog( $ms_site['blog_id'] );
			delete_option( $option_name );
		}
	}

	restore_current_blog();
} else {
	delete_option( $option_name );
}
```
