I’m writing a plugin that will be using custom fields added by a theme.
Because of this, it would be ideal if my plugin not be able to activate should these fields not exist.
How do I go about displaying an error and forcing the activation to fail?
I’m writing a plugin that will be using custom fields added by a theme.
Because of this, it would be ideal if my plugin not be able to activate should these fields not exist.
How do I go about displaying an error and forcing the activation to fail?
You must be logged in to post a comment.
Code like this can do the trick.