lmfwc_get_license function doesn’t work? | WordPress.org

[ad_1]

Hi,

I have an custom script that was working well, but i see yesterday that a problem with the function lmfwc_get_license.
I pass the key (not encryted) to this function to check if license is not expired.
But now the function always return false (i tried with 2 different license keys).

So i tried this code:

$license = LicenseResourceRepository::instance()->findBy(
    array(
        'hash' => apply_filters('lmfwc_hash', $key)
    )
);

Doesn’t work better 🙁
And the strange thing is that the result of apply_filters('lmfwc_hash', $key) is always the same, even i put a different license for the $key variable…

Thanks for help!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer