=== Remove Version Info ===
Author: Ashkar
Tags: hide version, remove version, delete, hide, wordpress version, wordpress, security
Requires at least: 3.0
Tested up to: 6.7
Stable tag: 1.2
License: GPL2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: remove-version-info
Domain Path: /languages

== Description ==

Remove the version from your WordPress website completely, increasing security and thwarting potential hacks by hiding WordPress version information from the source code.

This plugin:
- Removes the WordPress version number from the HTML meta generator tag.
- Removes version query strings (`?ver=x.x.x`) from CSS and JavaScript files.
- Hides the WordPress version from RSS feed generator tags.
- Adds security headers to prevent attacks and improve site security.

== Installation ==

1. Upload `remove-version-info.php` to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to your homepage, CTRL+U to view the source, and confirm that the WordPress version number has been removed from:
   - Meta generator tag.
   - Query strings in CSS and JS files.
4. Optional: You can check your security headers using developer tools in your browser to verify that headers like `Content-Security-Policy` and `X-Content-Type-Options` are being set.

== Frequently Asked Questions ==

= Why should I use this plugin when I can just put the code into my functions.php file? =

You can do that, but when you update or change your theme, it will be removed (along with any other modifications done to the `functions.php` file).

= Will this plugin persist even if I change or update my theme? =

Yes. This plugin works independently of your theme and will continue to function regardless of theme changes.

= What happens if I deactivate or uninstall this plugin? =

If you deactivate or uninstall this plugin, the version information will no longer be removed.

= What security headers does this plugin add? =

The plugin adds the following headers:
- **Content-Security-Policy**: Helps prevent XSS attacks by specifying allowed sources for content.
- **X-Content-Type-Options**: Prevents browsers from interpreting files as a different MIME type.
- **X-UA-Compatible**: Forces Internet Explorer to use the latest rendering engine.

== Screenshots ==

1. screenshot-1.png

== Changelog ==

= 1.2 =
* Combined filters for version removal to improve code efficiency.
* Added security headers like Content-Security-Policy and X-Content-Type-Options for enhanced security.
* Added localization support for plugin translations.
* Improved code comments for better maintainability and readability.

= 1.1 =
* Initial release.
