I'm trying to benchmark my blog, and I see that all these plugins are putting a whole lot of crap in my code! Since I'm doing most of what I need by myself, I don't think my very 开发者_如何学Pythonfew plugins need extra help. I tried fiddling a bit, and now I've gotten to a point where I just remarked the wp_head()
call.
Everything seems to be working fine, but I'm afraid I might have broken something I'm not aware of. Does anyone have any experience with this?
The main purpose of wp_head
is to provide a hook for plugins/themes to
- Alter or add new meta tags
- Add required CSS and stylesheets
- Add required javascript files
So not calling this function will break themes and plugins that use it for one of those purposes, at the very least. If you have no such plugins, you won't break WordPress itself by not calling it. It is not required by WordPress itself.
精彩评论