Hướng dẫn activate theme JNews v6.0 mới nhất

Downvn.net - Download phần mềm miễn phí

Hôm nay mình sẽ hướng dẫn các bạn cách activate theme JNews phiên bản mới nhất hiện tại là v2.1.1 để có thể import demo một cách dễ dàng.
Mặc định nếu bạn chưa activate thì chỉ import được cái demo mặc định mà thôi, bắt tay vào việc luôn nhé ?

Hướng dẫn activate theme JNews v6.0 mới nhất
Hướng dẫn activate theme JNews v6.0 mới nhất

Hướng dẫn activate theme JNews v6.0 mới nhất

Bước 1: Truy cập đường dẫn wp-content/themes/jnews/class/Util/ValidateLicense.php
Tìm

public function check_themes($token = null)
    {
        $token = $this->get_token($token);

        if ($token)
        {
            $result = $this->check_purchase_wordpress_themes($token);

            if ( $result )
            {
                update_option($this->optionname, array(
                    'validated' => true,
                    'token' => $token,
                    'item' => $result
                ));

                return true;
            } else {
                update_option($this->optionname, array(
                    'validated' => false,
                    'token' => null,
                    'item' => null
                ));
                return false;
            }
        }

        return false;
    }

Thay bằng

public function check_themes($token = null)
    {
        $token = $this->get_token($token);

        if ($token)
        {
            $result = $this->check_purchase_wordpress_themes($token);

            if ( $result )
            {
                update_option($this->optionname, array(
                    'validated' => true,
                    'token' => $token,
                    'item' => $result
                ));

                return true;
            } else {
                update_option($this->optionname, array(
                    'validated' => true,
                    'token' => $token,
                    'item' => $result
                ));
                return true;
            }
        }

        return true;
    }

Lưu lại.

Bước 2: Quay lại trang activate theme JNews và điền license key là dowvn.net để kích hoạt.

Bây giờ chỉ việc tận hưởng thành quả và tha hồ import demo nhé các bạn.

Chúc các bạn thành công.

Đánh giá post
68 / 100

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

Website này sử dụng Akismet để hạn chế spam. Tìm hiểu bình luận của bạn được duyệt như thế nào.