
CC-Clean-Head-Tags
v1.0.4Clearcode · 2017年1月23日 上架
This plugin removes unnecessary html tags from the head section as well as version numbers from style/script links.
- 正在使用
- 20+
- 评分
- 5.0 / 5
- 累计下载
- 2,868
- 最近更新
- 2022年3月16日
1 条评价需要 WordPress 4.7.1+已测试到 5.9.21PHP 7.2+
贡献者
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 );