{"id":128741,"date":"2025-09-04T09:58:54","date_gmt":"2025-09-04T09:58:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/junk-header-remover\/"},"modified":"2025-09-26T06:05:27","modified_gmt":"2025-09-26T06:05:27","slug":"junk-header-remover","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/junk-header-remover\/","author":18282329,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"1.0.2","tested":"6.8.5","requires":"6.0","requires_php":"","requires_plugins":null,"header_name":"Junk Header Remover for WordPress","header_author":"Joseph Brzezowski \/ AvocadoWeb Services LLC","header_description":"Removes unnecessary clutter junk from WP Header","assets_banners_color":"094975","last_updated":"2025-09-26 06:05:27","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/buymeacoffee.com\/avocadowebservices","header_plugin_uri":"https:\/\/github.com\/avocadowebservices\/junk-header-remover","header_author_uri":"https:\/\/github.com\/avocadowebservices","rating":0,"author_block_rating":0,"active_installs":10,"downloads":856,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"thedeafjoe","date":"2025-09-04 14:51:45"},"1.0.2":{"tag":"1.0.2","author":"thedeafjoe","date":"2025-09-26 06:05:27"}},"upgrade_notice":{"1.0.2":"<p>Added support link and updated documentation.<\/p>"},"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3355992,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544-500.png":{"filename":"banner-1544-500.png","revision":3359907,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3357978,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1431,58343,187,247,794],"plugin_category":[52,54],"plugin_contributors":[247410],"plugin_business_model":[],"class_list":["post-128741","plugin","type-plugin","status-publish","hentry","plugin_tags-header","plugin_tags-junk","plugin_tags-optimization","plugin_tags-performance","plugin_tags-speed","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_contributors-thedeafjoe","plugin_committers-thedeafjoe"],"banners":{"banner":"https:\/\/ps.w.org\/junk-header-remover\/assets\/banner-772x250.png?rev=3357978","banner_2x":"https:\/\/ps.w.org\/junk-header-remover\/assets\/banner-1544-500.png?rev=3359907","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/junk-header-remover\/assets\/icon-256x256.png?rev=3355992","icon_2x":"https:\/\/ps.w.org\/junk-header-remover\/assets\/icon-256x256.png?rev=3355992","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Header Junk Remover is a lightweight, no-settings plugin that cleans up the <code>&lt;head&gt;<\/code> section and headers of your WordPress site.<\/p>\n\n<p>It removes outdated tags, redundant links, bloated scripts, and unnecessary headers that WordPress adds by default. The result: cleaner source code, faster page loads, less information leakage, and fewer HTTP requests.<\/p>\n\n\n\n<p><strong>What gets removed (and why it matters):<\/strong><\/p>\n\n<ul>\n<li><p><strong>RSD Link<\/strong><br \/>\n  remove_action('wp_head', 'rsd_link');<br \/>\nUsed for Really Simple Discovery (old remote editing). Not needed anymore.<\/p><\/li>\n<li><p><strong>WordPress Generator<\/strong><br \/>\n  remove_action('wp_head', 'wp_generator');<br \/>\nHides your WP version. Avoids advertising it to bots\/hackers.<\/p><\/li>\n<li><p><strong>Feed Links<\/strong><br \/>\n  remove_action('wp_head', 'feed_links', 2);<br \/>\n  remove_action('wp_head', 'feed_links_extra', 3);<br \/>\nRemoves auto-added RSS\/Atom feed links. If you don\u2019t use feeds, these are pointless.<\/p><\/li>\n<li><p><strong>Relational Links (index, start, parent, adjacent posts)<\/strong><br \/>\n  remove_action('wp_head', 'index_rel_link');<br \/>\n  remove_action('wp_head', 'start_post_rel_link', 10, 0);<br \/>\n  remove_action('wp_head', 'parent_post_rel_link', 10, 0);<br \/>\n  remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);<br \/>\n  remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);<br \/>\nRemoves old \u201cprevious\/next\u201d link metadata almost no browsers or crawlers use.<\/p><\/li>\n<li><p><strong>Windows Live Writer Manifest<\/strong><br \/>\n  remove_action('wp_head', 'wlwmanifest_link');<br \/>\nDead tool support. Safe to remove.<\/p><\/li>\n<li><p><strong>Shortlink Tags\/Headers<\/strong><br \/>\n  remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0);<br \/>\n  remove_action('template_redirect', 'wp_shortlink_header', 11);<br \/>\nShortlink system is obsolete. Removing reduces clutter.<\/p><\/li>\n<li><p><strong>REST API Discovery Link<\/strong><br \/>\n  remove_action('wp_head', 'rest_output_link_wp_head', 10);<br \/>\nREST API still works, but no longer broadcast in headers.<\/p><\/li>\n<li><p><strong>oEmbed Discovery + Scripts<\/strong><br \/>\n  remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);<br \/>\n  remove_action('wp_head', 'wp_oembed_add_host_js');<br \/>\nPrevents WordPress from advertising oEmbed endpoints and loading extra JS.<\/p><\/li>\n<li><p><strong>Resource Hints (dns-prefetch, preconnect)<\/strong><br \/>\n  remove_action('wp_head', 'wp_resource_hints', 2);<br \/>\nStops WP from auto-inserting DNS hints you may not control.<\/p><\/li>\n<li><p><strong>Emoji Scripts and Styles<\/strong><br \/>\n  remove_action('wp_head', 'print_emoji_detection_script', 7);<br \/>\n  remove_action('wp_print_styles', 'print_emoji_styles');<br \/>\nRemoves redundant emoji JS\/CSS. Browsers already handle emojis natively.<\/p><\/li>\n<li><p><strong>Global Styles (Block Editor\/Gutenberg)<\/strong><br \/>\n  remove_action('wp_head', 'wp_enqueue_global_styles', 1);<br \/>\nPrevents WP from injecting default CSS that bloats your source.<\/p><\/li>\n<\/ul>\n\n\n\n<p><strong>Extra Hardening:<\/strong><\/p>\n\n<ul>\n<li><p><strong>Disable XML-RPC<\/strong><br \/>\n  add_filter('xmlrpc_enabled', '__return_false');<br \/>\nBlocks XML-RPC protocol (commonly abused in brute force\/DDoS attacks).<\/p><\/li>\n<li><p><strong>Remove X-Pingback Header<\/strong><br \/>\n  add_filter('wp_headers', function($headers) { unset($headers['X-Pingback']); return $headers; });<br \/>\nStops WP from advertising its pingback URL.<\/p><\/li>\n<li><p><strong>Turn off PHP Exposure (optional)<\/strong><br \/>\n  @ini_set('expose_php', 'off');<br \/>\nPrevents PHP version disclosure in server headers.<\/p><\/li>\n<\/ul>\n\n\n\n<p><strong>Why this matters:<\/strong><\/p>\n\n<ul>\n<li>Less clutter in your <code>&lt;head&gt;<\/code>  <\/li>\n<li>Fewer HTTP requests and faster load times  <\/li>\n<li>Less information leakage for bots\/hackers  <\/li>\n<li>Cleaner source code when you \u201cView Source\u201d  <\/li>\n<li>Safer defaults without touching your theme files  <\/li>\n<\/ul>\n\n\n\n<p>If you find this plugin useful, consider supporting my work:<br \/>\n\ud83d\udc49 <a href=\"https:\/\/buymeacoffee.com\/avocadowebservices\">Buy Me a Coffee<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to <code>\/wp-content\/plugins\/header-junk-remover<\/code>, or install via the WordPress Plugins screen.  <\/li>\n<li>Activate the plugin.  <\/li>\n<li>Done \u2014 no settings required.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='will%20this%20break%20my%20theme%20or%20plugins%3F'><h3>Will this break my theme or plugins?<\/h3><\/dt>\n<dd><p>No. These removals are optional extras. Your site runs fine without them.<\/p><\/dd>\n<dt id='can%20i%20keep%20some%20of%20these%20features%3F'><h3>Can I keep some of these features?<\/h3><\/dt>\n<dd><p>Yes. Open the plugin PHP file and comment out any <code>remove_action<\/code> or <code>add_filter<\/code> line you want to keep.<\/p><\/dd>\n<dt id='does%20this%20affect%20rss%20feeds%3F'><h3>Does this affect RSS feeds?<\/h3><\/dt>\n<dd><p>It removes the auto-advertised feed links. If you need feeds, just comment those lines out \u2014 feeds themselves still exist.<\/p><\/dd>\n<dt id='how%20can%20i%20support%20this%20plugin%3F'><h3>How can I support this plugin?<\/h3><\/dt>\n<dd><p>If this plugin saves you time or helps clean up your site, you can support development here:<br \/>\n<a href=\"https:\/\/buymeacoffee.com\/avocadowebservices\">https:\/\/buymeacoffee.com\/avocadowebservices<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Added support\/donate link (Buy Me a Coffee).<\/li>\n<li>Documentation updated.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Initial public release.  <\/li>\n<li>Removed generator, RSD link, WLW manifest, shortlink, REST API link, emoji scripts\/styles, relational links, oEmbed, resource hints, global styles.<\/li>\n<li>Added security hardening: disable XML-RPC, remove X-Pingback, disable PHP expose.<\/li>\n<\/ul>","raw_excerpt":"Short Description: Remove unnecessary meta tags and junk from your WordPress header for faster load times and cleaner code.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/128741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=128741"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thedeafjoe"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=128741"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=128741"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=128741"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=128741"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=128741"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=128741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}