去除 The7 主题导入演示数据限制和改为已注册方法

去除 The7 主题导入演示数据限制和改为已注册方法


正在查看 2 个帖子:1-2 (共 2 个帖子)
  • 作者
    帖子
  • 诗语
    管理员
    • 文章数量: 5,865
    @feibisi
    楼主

    The7 主题为原版源码,是需要授权码进行授权的,安装主题之后,后台会提示未注册,不注册并不会影响使用,只影响到在线升级和演式内容的导入,若想把未注册变为注册,请接着往下看。

    修改主题里面的dt-the7/incmods/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
    /**
    * DTDummy remote API. Used to communicate with DTdummy 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 {
    诗语
    管理员
    • 文章数量: 5,865
    @feibisi
    楼主
    此回复已被标记为私有,🔒 仅楼主及管理员可见。
正在查看 2 个帖子:1-2 (共 2 个帖子)
  • 哎呀,回复话题必需登录。

未找到对应子版块?请直接在 [疑难杂症] 版块中发帖提问。

收藏纪念品


有奖活动

参与论坛社区问答,有机会获赠文派瓦普(Wapuu.com)手办模型。

话题信息

商业系统