HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Is there a plugin API reference?

For instance, I am interested in such questions is there a way to do something on plugin disabling? If I can, how? I wasn't able to find anything like this in docs.
Tagged:

Best Answer

  • ToddTodd Chief Product Officer Vanilla Staff
    Accepted Answer
    To answer your specific question: you can define a function called OnDisable() in your plugin that will fire when the plugin is disabled.

    In terms of the documentation in general, we do the best that we can, but we are a tiny team and most of us already work seven days a week :)

Answers

  • ToddTodd Chief Product Officer Vanilla Staff
    Accepted Answer
    To answer your specific question: you can define a function called OnDisable() in your plugin that will fire when the plugin is disabled.

    In terms of the documentation in general, we do the best that we can, but we are a tiny team and most of us already work seven days a week :)
  • Maybe you could just generate documentation based on PHPDoc?

    Ok, I've found this info in library/core/interface.iplugin.php.

    Thanks anyway.
Sign In or Register to comment.