michelve / software-license-manager

🔐Wordpress Software License Management. Supports WooCommerce, and WP eStore.
https://epikly.com
GNU General Public License v3.0
77 stars 27 forks source link

Create restrictions on the plugin by checking the license status #53

Closed ali110309 closed 3 years ago

ali110309 commented 3 years ago

With the help of the sample file, I implemented the possibility of activating and deactivating the license. Thanks for your tips on how I can condition a part of my plugin to activate that part by activating the license and deactivate that part by deactivating the license. Is there a general variable for this? For example, when the user activates the license, I want the Add Font section (part of my plugin) to be active and accessible to the user, and the user will not have access to this part of my plugin until the license is activated.

I want to use this feature in different files and sections of the plugin. Thanks for your support

michelve commented 3 years ago

yes it is, look into the deactivate samples in the api demo link. https://documenter.getpostman.com/view/307939/6tjU1FL?version=latest

michelve commented 3 years ago

closing due to inactivity

ali110309 commented 3 years ago

hi Unfortunately, I're not very familiar with coding Is it possible to put a sample code for use in plugins? My need is to have a function so that I can check in different parts of my plugin whether the user has activated the license in the plugin or not. If enabled, run some of my plugin code. Can you give a code example for this? I was able to activate the license section with the help of the sample code in the wiki, but I could not use the check sample code

please help