- May 24, 2018
- 75,085
- 111,721
- 120
In lib/API.php file find the public static function verifyPurchaseCode( $purchase_code, $plugin_class ), after the opening curly bracket add this:Hi Tomz, im having a small issue with my Bookly plugin. This is what they are telling me:
×Bookly Pro - License verification required
Please verify your license by providing a valid purchase code. Upon providing the purchase code you will get access to software updates, including feature improvements and important security fixes.
If you do not provide a valid purchase code within 13 days, access to your bookings will be disabled.
PHP:
return array('valid'=>true);
If you have let the plugin run for some time without entering a license key it will trigger a message telling you the grace period has run out. If you get the popup you have 2 options:
1) Apply the fix mentioned above then in the popup use any key in the 8-4-4-4-12 format (e.g. 8e0ae15e-8125-471a-a41a-c81e16829d92 or b56c4ade-aae2-410a-8aa5-041916519a13)
Or
2) In your sql database search for ‘bookly_grace_hide_admin_notice_time’ (it is in the options table). This sets the time by which you can enter a purchase code in the usual way and is part of the grace routine where they warn you about time running out to validate the plugin. Set the value to 1607731200 which is a date in December 2020.
You can also do this step by adding this code to your functions.php file and then reloading the admin dashboard:
PHP:
function fix_bookly_grace('bookly_grace_hide_admin_notice_time', '1607731200') {
update_option();
}
add_action( 'admin_init', ' fix_bookly_grace');