我想保护模板中的页脚版权, 因为有些人已将其删除。我在某些模板中看到了带有版权的加密代码, 当我删除它时-模板不起作用。如何在模板中做到这一点?
#1
你确实无法阻止将它们删除。你可以做的是对functions.php文件进行编码(假设其中有一些你知道用户想要保留的函数, 然后添加如下函数:
add_action('wp_footer', 'copyright');
function copyright{
$copyright_notice = "YOUR COPYRIGHT CODE";
echo $copyright_notice;
}
然后, 你可以使用这样的在线工具来对functions.php文件进行编码, 除非该用户擅长逆向工程, 否则该用户将无法删除版权声明。
来源:
https://www.srcmini02.com/67127.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_36964.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57