Hướng dẫn active Content Egg plugin

Bạn làm theo các bước sau để active Content Egg Plugin

Bước 1:

Trong file application/admin/EnvatoConfig.php, tìm tới hàm activatingLicense, thêm vào ngay bên dưới nó dòng code:

return true;

Bước 2:

Trong file: application/admin/LicConfig.php:

Tìm tới hàm licFormat và hàm activatingLicense, thêm vào ngay bên dưới nó dòng code:

return true;

Bước 3:

Cũng trong file application/admin/LicConfig.php, tìm tới hàm resetLicense, tại dòng 105, thay thế bởi dòng code này:

$response = Plugin::apiRequest(array(‘method’ => ‘POST’, ‘timeout’ => 15, ‘httpversion’ => ‘1.0’, ‘blocking’ => true, ‘headers’ => array(), ‘body’ => array(‘cmd’ => ‘deactivate’, ‘key’ => $this->option(‘license_key’), ‘d’ => parse_url(site_url(), PHP_URL_HOST), ‘p’ => Plugin::product_id, ‘v’ => Plugin::version()), ‘cookies’ => array())); With $response = ”;

Bước 4:

Tiếp theo cũng trong hàm resetLicense ở bước 3 tìm đến dòng code:

$result = json_decode(\wp_remote_retrieve_body($response), true);

Và thay thế bằng dòng code:

$result = json_decode(‘{“status”:”valid”}’, true);

Tới đây bạn đã active Content Egg plugin thành công, giờ bạn có thể sử dụng đầy đủ chức năng và nhận bản cập nhật tự động từ nhà sản xuất rồi đấy

Chúc bạn thành công,

ThemeVN Support

Trả lời