之前购买使用了一个付费的WordPress主题,本来可以注册多个网站,后来不给注册了。
主要用来自己搭建了一个博客网站,记录平时的文章。
如果未购买,不填写注册码会影响很多功能的使用。
修改教程:
若想把未注册变为注册,修改主题里面的dt-the7incmodsdemo-contentincludesclass-the7-demo-content-remote-server-api.php文件,具体修改如下:
第8行添加以下代码:
update_site_option( ‘the7_registered’, ‘yes’ );
update_site_option( ‘the7_purchase_code’, ‘the7_purchase_code’ );
如下:
<?php
/**
* DT Dummy remote API. Used to communicate with DT dummy server.
*
* @since 2.0.0
* @package dt-dummy/includes
*/
update_site_option( 'the7_registered', 'yes' );
update_site_option( 'the7_purchase_code', 'the7_purchase_code' );
class The7_demo_Content_Remote_Server_API {
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。
相关标签: wordpress