Fir站长导航 > 站长资讯 > 教程分享 >

THE7wordpress主题未注册修改教程

2022-08-04
之前购买使用了一个付费的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

We use cookies in our website to improve our customer experience, we will not share these information to third party. By using this website you need to accept our Cookies and Privacy Policy. If you don't want to accept these Cookies, please change your browser setting. Find more.