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 {