# http-headers/1.12.0/views/clear-site-data.php

HTTP Headers, version 1.12.0. 60 lines.

- Page: https://pluginprobe.com/plugins/http-headers/1.12.0/code/views/clear-site-data.php
- Raw: https://pluginprobe.com/plugins/http-headers/1.12.0/raw/views/clear-site-data.php
- Modified: 2018-12-09T11:57:24+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/http-headers/1.12.0/code/views/clear-site-data.php#L10-L20`.

```php
<?php
if (!defined('ABSPATH')) {
    exit;
}
?>
<tr>
	<th scope="row">Clear-Site-Data
		<p class="description"><?php _e('The Clear-Site-Data header clears browsing data (cookies, storage, cache) associated with the requesting website. It allows web developers to have more control over the data stored locally by a browser for their origins.', 'http-headers'); ?></p>
	</th>
	<td>
        <fieldset>
        	<legend class="screen-reader-text">Clear-Site-Data</legend>
	    <?php
        $clear_site_data = get_option('hh_clear_site_data', 0);
        foreach ($bools as $k => $v)
        {
        	?><p><label><input type="radio" class="http-header" name="hh_clear_site_data" value="<?php echo $k; ?>"<?php checked($clear_site_data, $k); ?> /> <?php echo $v; ?></label></p><?php
        }
        ?>
		</fieldset>
	</td>
	<td>
		<?php settings_fields( 'http-headers-csd' ); ?>
		<?php do_settings_sections( 'http-headers-csd' ); ?>
		<?php 
		$items = array(
			'cache' => 'bool',
			'cookies' => 'bool',
			'storage' => 'bool',
			'executionContexts' => 'bool',
			'*' => 'bool',
		);
		?>
		<table>
		<?php 
		$clear_site_data_value = get_option('hh_clear_site_data_value');
		if (!$clear_site_data_value)
		{
			$clear_site_data_value = array();
		}
		foreach ($items as $item => $type)
		{
			?>
			<tr>
				<td><label for="hh_clear_site_data_value_<?php echo $item; ?>">"<?php echo $item; ?>"</label></td>
				<td><?php
				switch ($type) {
					case 'bool':
						?><input type="checkbox" class="http-header-value" name="hh_clear_site_data_value[<?php echo $item; ?>]" id="hh_clear_site_data_value_<?php echo $item; ?>" value="1"<?php checked(array_key_exists($item, $clear_site_data_value), 1, true); ?>><?php
						break;
				}
				?>	
				</td>
			</tr>
			<?php 
		}
		?>
		</table>
	</td>
</tr>
```
