如何在wordpress主题里禁用浏览器的F12和审查元素功能-WordPress主题

摘要:网站是一个开源的代码结构,很多时候,我们在查看对应的源代码结构时,会被提示禁用或是该功能无法使用,那这样的功能如何添加了…

网站是一个开源的代码结构,很多时候,我们在查看对应的源代码结构时,会被提示禁用或是该功能无法使用,那这样的功能如何添加了,在我们进行wordpress主题开发时,如何使用这样的禁用功能呢,其实很简单,只要添加下面这段js到主题的头部或是底部就可以了。
以下代码可以自动禁用wordpress网站浏览器的f12和审查元素功能。

来源:http://www.wazhuti.com/2891.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_13251.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?