简体   繁体   English

WordPress>在插件激活/安装时将Google验证文件传输到根目录

[英]Wordpress > Transfer google verification file to root directory on plugin activation/install

I've got a wordpress plugin which presets several settings in a wordpress site and creates some default pages which are the same for all my sites. 我有一个wordpress插件,该插件可以在wordpress网站中预设一些设置,并创建一些默认页面,这些页面与我的所有网站都相同。 I would like to include an html file in my plugin zip package that is placed into the site's root directory "as is" (same file name, etc) 我想在我的插件zip包中包含一个html文件,该文件被“原样”放置在网站的根目录中(文件名等)

The file is my google verification file, which is the same for all my sites, so I'd like to save a few steps and automate the process of installing it, along with my default setup steps that my plugin handles. 该文件是我的Google验证文件,对于我所有的站点都是相同的,因此我想保存一些步骤并自动执行安装过程,以及我的插件处理的默认设置步骤。

Any help, much appreciated. 任何帮助,不胜感激。

Really? 真? You couldn't google this? 你不能用谷歌搜索吗?

copy($from, $to)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM