Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Wordpress实现中添加HTTP头_Wordpress_Http - Fatal编程技术网

如何在Wordpress实现中添加HTTP头

如何在Wordpress实现中添加HTTP头,wordpress,http,Wordpress,Http,根据,我想将此代码与我的Wordpress网站的页面一起发送: <?php header("X-XSS-Protection: 0");?> 我把它放在哪里?你可以把它放在wordpress docroot中index.php的顶部。您需要在发送任何内容之前修改标题 如果使用新的worpress版本更新站点,则可能会丢失此更改。请注意。您可以将其放在wordpress docroot中index.php的顶部。您需要在发送任何内容之前修改标题 如果使用新的worpress版本更

根据,我想将此代码与我的Wordpress网站的页面一起发送:

<?php header("X-XSS-Protection: 0");?>


我把它放在哪里?

你可以把它放在wordpress docroot中index.php的顶部。您需要在发送任何内容之前修改标题


如果使用新的worpress版本更新站点,则可能会丢失此更改。请注意。

您可以将其放在wordpress docroot中index.php的顶部。您需要在发送任何内容之前修改标题


如果使用新的worpress版本更新站点,则可能会丢失此更改。请注意。

有没有办法搞乱核心代码?也许在一个主题中?@KennethVogt这是最好的,但是在将一个位发送到客户端浏览器之前必须找到一个加载的文件。有没有办法搞乱核心代码?也许在一个主题中?@KennethVogt这样最好,但在将一个位发送到客户端浏览器之前,必须找到一个加载的文件。