Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/qyet/insert-headers/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
wordpress插件
功能:自定义插入HTTP标头、Meta标签和全局脚本
wordpress 官方主题已经开始取消header.php文件,想要添加谷歌追踪代码可能有些不方便。
那就使用Insert-Headers这个插件吧!