Directory / plugin
CC-Clean-Head-Tags
v1.0.4 · by Clearcode
This plugin removes unnecessary html tags from the head section as well as version numbers from style/script links.
About this plugin
The CC-Clean-Head-Tags plugin removes:
- RSD / EditURI Link
- WLW Manifest Link
- RSS Feed Links
- Next & Prev Post Links
- Shortlink URL
- WP-API Links
WP Generator Meta from:
- html
- xhtml
- atom
- rss2
- rdf
- comment
- export
Additionally it removes version numbers from style and script links.
Tips & Tricks
You can exclude version number removal from certain style and/or script using these built-in filters:
Clearcode\Clean_Head_Tags\StyleClearcode\Clean_Head_Tags\Script
For example like this:
add_filter( ‘Clearcode\Clean_Head_Tags\Style’, function( $clean, $src, $handle ) {
return ! in_array( $handle, [‘style’] );
}, 10, 3 );