wordpress中header.php文件中加wp_head()作用是什么?

作者:袖梨 2022-06-25

在header.php文件的header标签结束标签

前面添加:

 代码如下 复制代码


.....

方便阅读附官方原文解析:

 代码如下 复制代码

...
/* Always have wp_head() just before the closing
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to such
* as styles, scripts, and meta tags.
*/
wp_head();
?>

相关文章

精彩推荐