# wp-optimize/4.6.1/templates/settings/settings-general.php

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 4.6.1. 24 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/4.6.1/code/templates/settings/settings-general.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/4.6.1/raw/templates/settings/settings-general.php
- Modified: 2026-04-21T16:53:34+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-optimize/4.6.1/code/templates/settings/settings-general.php#L10-L20`.

```php
<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>

<h3 class="wpo-first-child"><?php esc_html_e('General settings', 'wp-optimize'); ?></h3>
<div class="wpo-fieldgroup">
	<p>
		<label>
			<input name="enable-admin-bar" id="enable-admin-bar" type="checkbox" value ="true" <?php echo ($options->get_option('enable-admin-menu', 'false') === 'true') ? 'checked="checked"' : ''; ?> />
			<?php esc_html_e('Enable admin bar menu', 'wp-optimize'); ?>
		</label>
		<br>
		<small><?php esc_html_e('This option will add a link labeled "WP-Optimize" in the top admin bar, for easy access to the different features.', 'wp-optimize'); ?> <?php esc_html_e('Requires a page refresh after saving the settings.', 'wp-optimize'); ?></small>
	</p>

	<p id="enable_cache_in_admin_bar_option" class="<?php echo $settings_general_data['minify_or_cache_enabled'] ? '' : 'wpo_hidden'; ?>">
		<label>
			<input name="enable_cache_in_admin_bar" id="enable-cache-admin-bar" type="checkbox" value ="1" <?php checked($options->get_option('enable_cache_in_admin_bar', true)); ?> />
			<?php esc_html_e('Enable the caching menu in the admin bar', 'wp-optimize'); ?>
		</label>
		<br>
		<small><?php esc_html_e('This option will add a caching menu on the top admin bar.', 'wp-optimize'); ?> <?php esc_html_e('The admin bar menu is displayed only if Cache or Minify is enabled.', 'wp-optimize'); ?> <?php esc_html_e('Requires a page refresh after saving the settings.', 'wp-optimize'); ?></small>
	</p>

</div>

```
