# wp-coder/trunk/classes/Snippets/pages/optimization.php

WP Coder – Insert &amp; Manage Code Snippets, version trunk. 51 lines.

- Page: https://pluginprobe.com/plugins/wp-coder/trunk/code/classes/Snippets/pages/optimization.php
- Raw: https://pluginprobe.com/plugins/wp-coder/trunk/raw/classes/Snippets/pages/optimization.php
- Modified: 2026-02-14T05:39:58+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-coder/trunk/code/classes/Snippets/pages/optimization.php#L10-L20`.

```php
<?php
defined( 'ABSPATH' ) || exit;

?>

	<div class="wowp-snippets__header">
		<h3 class="wowp-snippets__header-title">Cleanup & Optimization</h3>
		<p class="wowp-snippets__header-description">Reduce bloat and improve performance.</p>
	</div>

<?php

$snippets = [
	'remove_wp_version'     => [
		'Remove WordPress Version Number',
		'Hide version info from site source and feeds.',
	],
	'disable_attachment_pages' => [
		'Disable Attachment Pages',
		'Redirect attachment pages to the parent post or homepage.',
	],
	'disable_rss_feeds' => [
		'Disable RSS Feeds',
		'Disable all default WordPress RSS feeds.',
	],
	'disable_search' => [
		'Disable Search',
		'Disable WordPress built-in search functionality.',
	],
	'disable_wlwmanifest_link' => [
		'Disable wlwmanifest link',
		'Remove the Windows Live Writer manifest tag.',
	],

	'disable_automatic_trash' => [
		'Disable Automatic Trash Emptying',
		'Stop automatic emptying of trash every 30 days.',
	],

	'enable_redirect_404_to_home' => [
		'Redirect 404 to Homepage',
		'Automatically redirect all 404 error pages to the homepage using a 301 redirect.',
	],

    'enable_image_lazy_load' => [
            'Enable Image Lazy Load',
            'Lazy load images on the frontend for better performance.',
    ],
];

self::create_options( $snippets );
```
