Check if it is panel

I wrote some plugins which are firing php classes automatically.

Unfortunately I’ve got plenty of errors when I’m logged into the panel.

Is there a way to check if the panel is shown? So I can prevent firing those classes when I’m working in the panel?

Thanks in advance for the answer!

You can use the following:

if(class_exists('Panel')) {
1 Like

Wonderful, it works! Thanks :slight_smile: