How to set a global condition flag
-
Hi,
I am writing a plugin which searches for a keyword in a post. When it runs the first time the plugin will find and extract the keyword, if its present. After extracting the keyword, there is no further need to run the extraction function. I would like to set some sort of global flag so that the next time the plugin runs, it know not to search for or extract the keyword. Ideally the entire plugin could even be deactivated at this point.
Does anyone have any suggestions on best practices ( or practices ) ??
Best regards,
KC
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to set a global condition flag’ is closed to new replies.