0
点赞
收藏
分享

微信扫一扫

#私藏项目实操分享#THE7wordpress主题未注册修改教程

之前购买使用了一个付费的WordPress主题,本来可以注册多个网站,后来不给注册了。

#私藏项目实操分享#THE7wordpress主题未注册修改教程_wordpress

主要用来自己搭建了一个博客网站,记录平时的文章。

如果未购买,不填写注册码会影响很多功能的使用。

#私藏项目实操分享#THE7wordpress主题未注册修改教程_wordpress_02

修改教程:

若想把未注册变为注册,修改主题里面的dt-the7\inc\mods\demo-content\includes\class-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 {

举报

相关推荐

0 条评论