非常简单,使用grep -rn xxx搜索即可.注意可能不支持中文字符.

定位文件位置

[root@VM_0_16_centos mynote]# cd /data/wwwroot/wordpress/wp-content/themes/mynote
[root@VM_0_16_centos mynote]# ls
404.php      assets      category.php  custom-landing-page-full.php    editor-style.css  functions.php  inc        languages  page.php    screenshot.png  search.php  style.css  template-parts
archive.php  author.php  comments.php  custom-landing-page-simple.php  footer.php        header.php     index.php  LICENSE    README.txt  searchform.php  single.php  tag.php
[root@VM_0_16_centos mynote]# grep -rn "12005352" *
inc/template-tags.php:579:              echo  ' <a href="' . esc_url( $beian ) . '" target="_blank">' . '桂ICP备12005352号-3' . '</a>. ';
[root@VM_0_16_centos mynote]# 

修改inc/template-tags.php:579为新的备案信息.

最后修改日期: 2024年3月14日

作者

留言

撰写回覆或留言

发布留言必须填写的电子邮件地址不会公开。