{"id":50140541,"url":"https://github.com/thisismyurl/remove-generator-tag-for-wordpress","last_synced_at":"2026-05-24T01:03:26.487Z","repository":{"id":355259660,"uuid":"1221594074","full_name":"thisismyurl/remove-generator-tag-for-wordpress","owner":"thisismyurl","description":"Removes the WordPress version meta generator tag from your site head — small security hardening with zero configuration.","archived":false,"fork":false,"pushed_at":"2026-05-20T21:24:45.000Z","size":36,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-21T03:16:02.257Z","etag":null,"topics":["hardening","meta-generator","security","wordpress","wordpress-plugin","wp-head"],"latest_commit_sha":null,"homepage":"https://thisismyurl.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thisismyurl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-26T12:32:35.000Z","updated_at":"2026-05-20T21:24:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thisismyurl/remove-generator-tag-for-wordpress","commit_stats":null,"previous_names":["thisismyurl/remove-generator-tag-for-wordpress"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thisismyurl/remove-generator-tag-for-wordpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisismyurl%2Fremove-generator-tag-for-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisismyurl%2Fremove-generator-tag-for-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisismyurl%2Fremove-generator-tag-for-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisismyurl%2Fremove-generator-tag-for-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisismyurl","download_url":"https://codeload.github.com/thisismyurl/remove-generator-tag-for-wordpress/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisismyurl%2Fremove-generator-tag-for-wordpress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33417491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"ssl_error","status_checked_at":"2026-05-23T22:14:43.778Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hardening","meta-generator","security","wordpress","wordpress-plugin","wp-head"],"created_at":"2026-05-24T01:03:20.418Z","updated_at":"2026-05-24T01:03:26.479Z","avatar_url":"https://github.com/thisismyurl.png","language":"PHP","funding_links":["https://github.com/sponsors/thisismyurl"],"categories":[],"sub_categories":[],"readme":"# WP Remove Generator Meta Tag\n\nSingle-file WordPress plugin that strips the WordPress version meta generator tag from your site head **and** every feed format.\n\n[![WordPress.org](https://img.shields.io/wordpress/plugin/installs/remove-generator-tag-for-wordpress.svg)](https://wordpress.org/plugins/remove-generator-tag-for-wordpress/)\n[![Rating](https://img.shields.io/wordpress/plugin/r/remove-generator-tag-for-wordpress.svg)](https://wordpress.org/plugins/remove-generator-tag-for-wordpress/#reviews)\n[![License: GPL v2+](https://img.shields.io/badge/License-GPL_v2%2B-blue.svg)](https://www.gnu.org/licenses/gpl-2.0)\n\n---\n\n## Why this exists\n\nI keep running into hardened WordPress sites where someone forgot to strip the generator tag, and version fingerprinting still gets sites compromised in 2026. I built this plugin for the same reason I built the first version of it back in 2010: it should already be a default in core, and it isn't.\n\nOriginally published 2010. Rewritten 2026 for current WordPress.\n\n## What it does\n\n- Removes `\u003cmeta name=\"generator\"\u003e` from `\u003chead\u003e` on every front-end page.\n- Removes the generator string from every feed format WordPress emits — RSS2, RSS, RDF, Atom, comments feeds, OPML, and the Atom Publishing endpoint.\n- Filters `get_the_generator_*` so SEO and security plugins that call the helper directly also receive an empty string.\n\n## What it does *not* do\n\n- Strip `?ver=X.Y.Z` from enqueued asset URLs. That has real cache-busting trade-offs and belongs in a separate plugin.\n- Render an admin page, settings screen, or notices.\n- Enqueue CSS, JS, or images.\n- Phone home, log telemetry, or contact any third-party service.\n\nSmall, single-purpose plugin. No settings page, no admin chrome, no tracking. Activate it and it works. Deactivate it and it leaves no trace.\n\n## Requirements\n\n- WordPress 6.4 or later.\n- PHP 7.4 or later.\n\n## Installation\n\n1. Install through the [WordPress plugin directory](https://wordpress.org/plugins/remove-generator-tag-for-wordpress/) or upload the plugin folder to `wp-content/plugins/`.\n2. Activate it from **Plugins** in WordPress admin.\n3. Reload any front-end page and search the HTML source for `generator`. The tag should be absent. Check `/feed/` the same way.\n\n## How it works\n\n```php\n// In wp-remove-generator-meta.php\nremove_action( 'wp_head', 'wp_generator' );\n\nforeach ( $feed_hooks as $hook ) {\n    remove_action( $hook, 'the_generator' );\n}\n\nforeach ( $generator_filters as $filter ) {\n    add_filter( $filter, __NAMESPACE__ . '\\\\suppress_generator_string', 10, 0 );\n}\n```\n\nThe plugin hooks at boot — no `init`, no `wp_loaded`, no settings to read. WordPress core registers `wp_generator` and `the_generator` early in the request lifecycle, so detaching them at file load is the cheapest path. The `get_the_generator_*` filter set covers every helper variant (`html`, `xhtml`, `atom`, `rss2`, `rss`, `comment`, `export`) so anything calling the helper directly receives an empty string instead of the version.\n\n## Development\n\n```sh\ncomposer install\ncomposer run lint:phpcs\n```\n\nPHPCS runs against the WordPress-Extra ruleset with PHPCompatibilityWP set to PHP 7.4+. CI runs the same on every push. The plugin is one file; reading the source is the documentation.\n\n## Changelog\n\nSee [`readme.txt`](readme.txt) for the full WordPress.org changelog.\n\n## License\n\nGPL v2 or later. See [LICENSE](LICENSE).\n\n## Author\n\nBuilt and maintained by Christopher Ross — 25 years working with WordPress, currently running a senior-dev consulting practice at This Is My URL. More plugins, writing, and case studies at [thisismyurl.com](https://thisismyurl.com/).\n\n\n---\n*This project follows the [10 Core Pillars](PILLARS.md). Support quality work [here](https://github.com/sponsors/thisismyurl).*\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisismyurl%2Fremove-generator-tag-for-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisismyurl%2Fremove-generator-tag-for-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisismyurl%2Fremove-generator-tag-for-wordpress/lists"}