hypothetical scenario regarding ACF Pro License Deactivation and Website Access Control
jack wang
Dear Advanced Custom Fields Support Team,
I hope this email finds you well.
I'm reaching out to discuss a hypothetical scenario involving the use of ACF Pro licenses and how to programmatically respond to changes in license status. This is purely theoretical and not indicative of an immediate need but rather a preparation for potential future situations.
Here's the scenario: Suppose I provide a client with a website that includes the ACF Pro plugin activated with a license key. If, for any reason, I need to restrict the client's access to the website, I would want to do so by remotely deactivating the ACF Pro license through the official ACF backend. Once deactivated, I would like to implement a method to check the license status via code and disable the website's functionality if the license is no longer valid.
To prepare for this hypothetical situation, I have a few questions:
Is it possible to remotely deactivate an ACF Pro license key associated with a client's website through the ACF backend system?
If I were to deactivate the license, is there a way to check the license status programmatically on the website itself?
In the event of a license deactivation, what would be the recommended approach to disable the website's functionality through code without affecting the already published content?
I understand that the ACF Pro documentation states that the editing and display of field data outside the ACF admin screens will not be affected by the license status. My primary concern is to restrict access to the administrative features of the website, particularly the ability to create and edit PRO fields.
I appreciate your guidance on this matter and any insights you can provide into how ACF Pro licenses can be managed in such a scenario.
Thank you for your time and assistance.
My email is jack361@qq.com. Thank you very much for your reply.
Iain Poulson
Hey Jack, there isn't a nice solution for this at the moment. A couple of options:
- When you want to deactivate their license key, you will need to contact the ACF support team to change the license key for your subscription, which will impact all sites using that key. This only works if the subscription is purely for that client.
- You ask the client to purchase their own subscription of ACF PRO so you don't have to manage their license
jack wang
Hello, I just need to check if ACF has been activated and authorized. I can handle other things through code. Is there any statement or code snippet that can be used to determine this?