Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to detect if a plugin installed or not?

  • Avatar of imjscn
    imjscn
    Participant

    @imjscn

    I need to use a function from a plugin, can I just use it straight? or should I add a condition of “if …plugin is installed’?
    My guess is– adding a condition can avoid error message. But I don’t know how to write this condition. Need help!

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Virtuali
    Virtuali
    Participant

    @gunju2221

    You can always avoid an error with this statement:

    Put the function between the ”, if the function does exist, it will appear, if it doesn’t, it will just simply do nothing.

    Avatar of imjscn
    imjscn
    Participant

    @imjscn

    Great!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.